G
Guest
Hello,
I have a gridview control bound to a objectdatasource.
The primary key column is on the grid but made visible = false.
Because the column is invisible I cant get to the cell value when the user
presses
the edit button on the grid.
Code
Sub CustomersGridView_RowEditing(ByVal sender As Object, ByVal e As
GridViewEditEventArgs)
String bedpID = CustomersGridView.Rows(e.NewEditIndex).Cells(1).Text
end sub
I have set up the grdBedpDetails.DataKeyNames property
but this is only useful in the selectedindex event not the RowEditing event
CustomersGridView.Rows(e.NewEditIndex).Cells(1).Text return a empty string
because the column is invisible.
Thanks
I have a gridview control bound to a objectdatasource.
The primary key column is on the grid but made visible = false.
Because the column is invisible I cant get to the cell value when the user
presses
the edit button on the grid.
Code
Sub CustomersGridView_RowEditing(ByVal sender As Object, ByVal e As
GridViewEditEventArgs)
String bedpID = CustomersGridView.Rows(e.NewEditIndex).Cells(1).Text
end sub
I have set up the grdBedpDetails.DataKeyNames property
but this is only useful in the selectedindex event not the RowEditing event
CustomersGridView.Rows(e.NewEditIndex).Cells(1).Text return a empty string
because the column is invisible.
Thanks