I have a gridview bound to a sqldatasource. The gridview has several columns corresondence to the database column names. However, the only way I've found to grab the value from one of those columns is by knowing the cell index:
GridViewRow gRow = GridView1.Rows[iRow];
TableCell tc = gRow.Cells[14];
Certainly there must be a way I can refer to it by its column name rather than cell index, is there not?
GridViewRow gRow = GridView1.Rows[iRow];
TableCell tc = gRow.Cells[14];
Certainly there must be a way I can refer to it by its column name rather than cell index, is there not?