G Guest Apr 12, 2005 #1 If my query results are more tha one row, how do I point to the firstrow and the to the second row etc, to bind the data to textboxes?
If my query results are more tha one row, how do I point to the firstrow and the to the second row etc, to bind the data to textboxes?
K Karl Seguin Apr 12, 2005 #2 are you getting the data into a SqlDataReader? A dataset??? ? Karl -- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
are you getting the data into a SqlDataReader? A dataset??? ? Karl -- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
G Guest Apr 12, 2005 #3 How do you read your query results ? If you're using DataSet use: myDataSet.Tables[0].Rows[Index] If you're using DataReader, just use ReadNext method Regards, Kostadin Kostov
How do you read your query results ? If you're using DataSet use: myDataSet.Tables[0].Rows[Index] If you're using DataReader, just use ReadNext method Regards, Kostadin Kostov
G Guest Apr 13, 2005 #4 I'm using IDbDataAdapter and a dataset Karl Seguin said: are you getting the data into a SqlDataReader? A dataset??? ? Karl -- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!) Click to expand...
I'm using IDbDataAdapter and a dataset Karl Seguin said: are you getting the data into a SqlDataReader? A dataset??? ? Karl -- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!) Click to expand...
K Karl Seguin Apr 13, 2005 #5 Kostadin answered your question then... //c# ds.Tables[0].Rows[0]["ColumnName"] 'vb.net ds.Tables(1).Rows(0)("ColumnName") Cheers, Karl
Kostadin answered your question then... //c# ds.Tables[0].Rows[0]["ColumnName"] 'vb.net ds.Tables(1).Rows(0)("ColumnName") Cheers, Karl