im trying to get the value of each record returned in a datalist.
I can get the column headings but i want to go through each record and get back each column value. how do i do this?
this is what i have:
but it obviously doesnt seem to work. the last messagebox shows "system.data.datarow". any ideas anyone?Code:for(int j = 0; j < dt.Rows.Count; j++) { for(int i = 0; i < dt.Columns.Count; i++) { MessageBox.Show(dt.Columns[i].ToString()); } MessageBox.Show(dt.Rows[j].ToString()); }
any ideas?




Reply With Quote