I'm trying to get the value of a cell from the row selected on my grid using:
Dim getcell As GridRecordItem
getcell = WebGrid1.Behaviors.Selection.SelectedRows(1).Items(1)
Response.Write(getcell.Text.ToString())
But it returns a "index was out of range" message
Hi,
You should start with 0 for the first selected row and/or item.
Ed
Changed the indexed value to zero and still am getting an index is out of range message...
Hello crisafulli,
Did you enabled the grid Selection behavior and set it to Cell Selection?
What kind of selection did you choose Single or Multiple?
I am waiting for your response.
I decided to use the activation behavior and now have it working.
Then
GridRecordItem
getcell = WebDataGrid1.Behaviors.Activation.ActiveCell.Row.Items(1)
MsgBox(getcell.Text.ToString)
If
How would i get the value in javascript in AfterExitEditModeHandler client event