Hi,

I have a DataGrid and there is a Delete button. When I press the Delete button, I want to capture 4th cell value from the data grid and use it, but no value is returned. What do you think my problem?

Button is defined as:
<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>


Private Sub dgConsultants_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgConsultants.ItemCommand

Dim item As String = e.Item.Cells(4).Text

End Sub