J
Julia B
Hi all, sorry this is a re-post as I didn't get any responses a couple of
weeks ago, so I'm trying again.
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 of the gridview 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
weeks ago, so I'm trying again.
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 of the gridview 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