S
Seb
As of now I execute the following code when selecting a row in a
gridview. However can I somehow refer to the cells by name rather then
their index? eg. String Name = row.Cells["Name"].Text;
protected void ExercisesGridView_SelectedIndexChanged(object
sender, EventArgs e)
{
GridViewRow row = ((GridView)sender).SelectedRow;
String Name = row.Cells[2].Text;
String Description = row.Cells[3].Text;
String ExerciseType = row.Cells[4].Text;
....
best regards
gridview. However can I somehow refer to the cells by name rather then
their index? eg. String Name = row.Cells["Name"].Text;
protected void ExercisesGridView_SelectedIndexChanged(object
sender, EventArgs e)
{
GridViewRow row = ((GridView)sender).SelectedRow;
String Name = row.Cells[2].Text;
String Description = row.Cells[3].Text;
String ExerciseType = row.Cells[4].Text;
....
best regards