K
kevin
Hi, I'm working with VS 2005 and Framework 2.0
I have a datagrid with a link and the selectedindexchanged will not
fire. The page posts back but does nothing.
Protected Sub DataGrid1_SelectedIndexChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
DataGrid1.SelectedIndexChanged
Label2.Text = "what the H"
End Sub
label2 fills with nothing.
I can get ItemCommand to fire
Protected Sub DataGrid1_ItemCommand(ByVal source As Object, ByVal e
As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
DataGrid1.ItemCommand
Label2.Text = "this shows"
End sub
but with itemcommand I can't get
datagrid1.selecteditem.cells(0) when I hit the link in the grid to
pass the data
I get: Object reference not set to an instance of an object. error
any help would be appreciated. Thanks Kevin
I have a datagrid with a link and the selectedindexchanged will not
fire. The page posts back but does nothing.
Protected Sub DataGrid1_SelectedIndexChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
DataGrid1.SelectedIndexChanged
Label2.Text = "what the H"
End Sub
label2 fills with nothing.
I can get ItemCommand to fire
Protected Sub DataGrid1_ItemCommand(ByVal source As Object, ByVal e
As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
DataGrid1.ItemCommand
Label2.Text = "this shows"
End sub
but with itemcommand I can't get
datagrid1.selecteditem.cells(0) when I hit the link in the grid to
pass the data
I get: Object reference not set to an instance of an object. error
any help would be appreciated. Thanks Kevin