By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,575 Members | 1,402 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,575 IT Pros & Developers. It's quick & easy.

DataGrid Web form button question

P: n/a

VB,Net / DataGrid / Web form / Bound to Dataset.

I have a Datagrid with a Select Push-button button in column 1. When the
button is pushed no event firers.
Neither of these two events will work UNLESS I switch my button type from
"Push" to "Link"
Private Sub DataGrid1_ItemCommand(ByVal source As System.Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles
Dim strtest As String = "test"
End Sub

Private Sub DataGrid1_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles DataGrid1.SelectedIndexChanged
' do something here
End Sub

what am i missing ?


Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.