Last post Jan 26, 2009 05:42 AM by raghav_khunger
Jan 26, 2009 03:37 AM|hanxiao|LINK
I have the Table Name, the Column Name and the id which can identify the row from the table, how can I locate which cell of the table?
Jan 26, 2009 04:38 AM|mudassarkhan|LINK
Suppose your datatable is dt
DataRow dr = dt.Select("Name = '" + MAK + "'"); //This will select all rows where the Name Column has value MAK
string phone = dr[i]["Phone"].ToString(); //To get the value of the phone column
Dim dr as DataRow() = dt.Select("Name = '" + MAK + "'") //This will select all rows where the Name Column has value MAK
for i as integer = 0 to dr.length-1
Dim phone as String = dr[i]["Phone"].ToString() //To get the value of the phone column
Jan 26, 2009 05:42 AM|raghav_khunger|LINK
Suppose U have A Datatable dt and I am supposing that it has rows with two columns
U can Fetch tht logic
U can Try this example
I have assumed that ur two columns are string and u can convert that to proper datatype
depending upon ur columns datatype.