D
Dica
i need to allow the user to select a row from my dataGrid for editing. as
such, i include the record ID in the first column and then extract like so
when retrieving the record details:
protected void gvLocations_edit(object sender, GridViewEditEventArgs e)
{
// load the record details into the edit fields //
GridView gvRecord = (GridView)sender;
string sThisRecord = gvRecord.Rows[e.NewEditIndex].Cells[0].Text;
...
}
i've been told i need to exclude the record ID from the datagrid, so i set
the column's visibility property to false. now my code fails as index[0] is
no longer the record id but a varChar column.
how to fix?
tks
such, i include the record ID in the first column and then extract like so
when retrieving the record details:
protected void gvLocations_edit(object sender, GridViewEditEventArgs e)
{
// load the record details into the edit fields //
GridView gvRecord = (GridView)sender;
string sThisRecord = gvRecord.Rows[e.NewEditIndex].Cells[0].Text;
...
}
i've been told i need to exclude the record ID from the datagrid, so i set
the column's visibility property to false. now my code fails as index[0] is
no longer the record id but a varChar column.
how to fix?
tks