J
JohnE
I have a gridview that has a left column that displays 'Select' for selecting
the row. I have the followng code that will select/deselect the row when the
'Select' is used. What is being asked for is to have 'Select' change to
'Unselect' (or Deselect) when the row is highlighted. How would that be
place in the code that is currently being used?
protected void GridView1_SelectedIndexChanging(object sender,
GridViewSelectEventArgs e)
{
if (GridView1.SelectedIndex == e.NewSelectedIndex)
{
e.Cancel = true;
GridView1.SelectedIndex = -1;
}
}
Thanks for the assistance.
John
the row. I have the followng code that will select/deselect the row when the
'Select' is used. What is being asked for is to have 'Select' change to
'Unselect' (or Deselect) when the row is highlighted. How would that be
place in the code that is currently being used?
protected void GridView1_SelectedIndexChanging(object sender,
GridViewSelectEventArgs e)
{
if (GridView1.SelectedIndex == e.NewSelectedIndex)
{
e.Cancel = true;
GridView1.SelectedIndex = -1;
}
}
Thanks for the assistance.
John