PC Review


Reply
Thread Tools Rate Thread

DataGrid Web form button question

 
 
=?Utf-8?B?QnJpYW5ESA==?=
Guest
Posts: n/a
 
      12th Nov 2004
Hi

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
DataGrid1.ItemCommand
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 ?

Thanks

Brian
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
datagrid and button on the form iccsi Microsoft Access Form Coding 8 17th Mar 2009 02:36 PM
Add Button to a Windows Form Datagrid Kiran Microsoft VB .NET 5 12th May 2005 03:20 PM
Button in a datagrid (windows form) MCDave Microsoft VB .NET 1 25th Mar 2005 04:13 AM
DataGrid column button Question =?Utf-8?B?QnJpYW5ESA==?= Microsoft VB .NET 0 23rd Nov 2004 04:31 PM
Another question about a button in a datagrid. Bart Schelkens Microsoft ASP .NET 2 19th Aug 2004 03:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:42 AM.