R
ruca
Hi gurus,
I need to create a ButtonColumn in my code for using in my datagrig. What
happens is that I create this button in code, but then when I click him,
nothing happens.
I have this in my vb code:
---------------------------------
Dim bc As New ButtonColumn
bc.HeaderText = ""
bc.Text = "See Details"
bc.CommandName = "Select"
dgMyGrid.Columns.AddAt(0, bc)
//then I have the fucntion that should run when click in button
Sub SeeDetails(ByVal Sender As Object, ByVal e As DataGridCommandEventArgs)
If e.CommandName <> "Page" Then
'Place my code here
End If
End Sub
I need to create a ButtonColumn in my code for using in my datagrig. What
happens is that I create this button in code, but then when I click him,
nothing happens.
I have this in my vb code:
---------------------------------
Dim bc As New ButtonColumn
bc.HeaderText = ""
bc.Text = "See Details"
bc.CommandName = "Select"
dgMyGrid.Columns.AddAt(0, bc)
//then I have the fucntion that should run when click in button
Sub SeeDetails(ByVal Sender As Object, ByVal e As DataGridCommandEventArgs)
If e.CommandName <> "Page" Then
'Place my code here
End If
End Sub