Jun 16, 2006 #1 Westond Programmer Jan 19, 2005 43 US Hey guys, I have a dt in c# and all I am tring to do is read the records out of it.?? label1 = dt.Rows[0].Table.Column["field"]; something like that .. How do I get the value of "field" to display in the label? Thanks Wes
Hey guys, I have a dt in c# and all I am tring to do is read the records out of it.?? label1 = dt.Rows[0].Table.Column["field"]; something like that .. How do I get the value of "field" to display in the label? Thanks Wes
Jun 16, 2006 #2 Guru7777 Programmer Dec 10, 2003 331 US This is one way... Code: dt.Rows[0][1].ToString(); That will write out the data from the second column of the first row. ---------------------------------------- TWljcm8kb2Z0J3MgIzEgRmFuIQ== Upvote 0 Downvote
This is one way... Code: dt.Rows[0][1].ToString(); That will write out the data from the second column of the first row. ---------------------------------------- TWljcm8kb2Z0J3MgIzEgRmFuIQ==