Hi-
I'm trying to delete rows from a datagrid (bound from a ds kept in session). I'm trying to access the rows data clicked on my the delete button via e.item.cells().Text. Here is my code:
I've tried just printing the values into a textbox and they are empty...
I'm kicking off the deletecommand by clicking on :
the routine kicks off, but i'm trying to use the data from the selected row to match rows in the whole dataset, and I can't get access to the text... is there something that needs to be done as far as getting the datagrid row to be *selected*?
I'm trying to delete rows from a datagrid (bound from a ds kept in session). I'm trying to access the rows data clicked on my the delete button via e.item.cells().Text. Here is my code:
Code:
Private Sub MeetingDetails_DeleteCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles MeetingDetails.DeleteCommand
Dim col1 As String = e.Item.Cells(0).Text
Dim col2 As String = e.Item.Cells(1).Text
Dim col3 As String = e.Item.Cells(2).Text
Dim col4 As String = e.Item.Cells(3).Text
Dim col5 As String = e.Item.Cells(4).Text
Dim col6 As String = e.Item.Cells(5).Text
Dim col7 As String = e.Item.Cells(6).Text
'other stuff down below
End Sub
I've tried just printing the values into a textbox and they are empty...
I'm kicking off the deletecommand by clicking on :
Code:
<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
the routine kicks off, but i'm trying to use the data from the selected row to match rows in the whole dataset, and I can't get access to the text... is there something that needs to be done as far as getting the datagrid row to be *selected*?