Return to Snippet

Revision: 6044
at April 24, 2008 14:16 by czapata


Updated Code
foreach(DataRow row in dr.Table.Rows)
{
           int colCount=0;
           foreach(DataColumn column in dr.Table.Columns)
           {
                Response.Write(dr.Table.Columns[colCount].ColumnName + ": " + dr[column].ToString() + "<br />");
                colCount ++;
           }
}

Revision: 6043
at April 23, 2008 10:59 by czapata


Updated Code
foreach(DataRow row in dr.Table.Rows)
		        {
		            foreach(DataColumn column in dr.Table.Columns)
		            {
		                Response.Write(dr[column].ColumnName + ": " + dr[column].ToString() + "/n");
					}
				}

Revision: 6042
at April 23, 2008 09:54 by czapata


Initial Code
				foreach(DataRow row in dr.Table.Rows)
		        {
		            foreach(DataColumn column in dr.Table.Columns)
		            {
		                Response.Write(dr[column].ColumnName + ": " + dr[column].ToString() + "/n");
					}
				}

Initial URL

                                

Initial Description

                                

Initial Title
DataRow Column Iterator

Initial Tags

                                

Initial Language
C#