J
Julia B
Hi all
I've got a gridview that has a a link button added under certain
circumstances. When the link button is pressed, I assumed that the
selectedindexchanged event would fire but it doesn't. The page does post back
but nothing else happens. Here's the code I use for adding the link button to
the gridview:
If Me.tbStatus.Text <>
RC.RC_Web_AccountMonitor.CommonUtilities.ARStatus.Live.ToString And
Me.tbStatus.Text <>
RC.RC_Web_AccountMonitor.CommonUtilities.ARStatus.Terminated.ToString Then
Dim bfld As New ButtonField
bfld.ButtonType = ButtonType.Link
bfld.CommandName = "btnAmend"
bfld.Text = "Amend"
Me.dgAccs.Columns.Insert(0, bfld)
End If
Any ideas on why the event doesn't fire? Or should I be using another event,
or adding the button in a different way?
Thanks
Julia
I've got a gridview that has a a link button added under certain
circumstances. When the link button is pressed, I assumed that the
selectedindexchanged event would fire but it doesn't. The page does post back
but nothing else happens. Here's the code I use for adding the link button to
the gridview:
If Me.tbStatus.Text <>
RC.RC_Web_AccountMonitor.CommonUtilities.ARStatus.Live.ToString And
Me.tbStatus.Text <>
RC.RC_Web_AccountMonitor.CommonUtilities.ARStatus.Terminated.ToString Then
Dim bfld As New ButtonField
bfld.ButtonType = ButtonType.Link
bfld.CommandName = "btnAmend"
bfld.Text = "Amend"
Me.dgAccs.Columns.Insert(0, bfld)
End If
Any ideas on why the event doesn't fire? Or should I be using another event,
or adding the button in a different way?
Thanks
Julia