Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Cathryn Johns #1
SelectedIndex changed after onclick event
Hi
I have a datagrid, with a column containing an edit button for each row
(using a template column):
<asp:TemplateColumn>
<ItemTemplate>
<asp:button id="editButton" runat="server" Text="Edit"
CommandName="Select" OnClick="EditClick"></asp:button>
</ItemTemplate>
</asp:TemplateColumn>
The idea is that the user clicks the edit button, and I then get the
selected index, from that get the id of the row, and send it off
somewhere else to be processed.
But I find that the SelectedIndex property (and the
selectedIndexChanged event) is only changed *after* the onclick method
is called! Is there any way to reverse this order? I guess that I
could just forget the onclick method and do everything that I need to
in the SelectedIndexChanged event handler, but that seems a bit kludgy.
Cathryn Johns Guest
-
are there any event handlers besides onClick?
hi, i've made a command for my extension which is called by a menuitem in the File menu via dw.runCommand("myCommand.html"); this .html is... -
Onclick event
I would like for certain Contribute users to be able to add on onclick event on links. How can they do this ? Thanks! -
onclick event not working
Hi there I have created a button on a web page and placed text over the button. I have tried a few things to get the button working so that... -
Listbox selectedindex changed event not firing from within datagrid
Hi Jason, Thank you for posting in the community! Based on my understanding, you use ListBox in your DataGrid EditTemplate. Although you have... -
script ASP in an onClick event
i need to insert, in a onClick event of a submit button in a form, a call to an ASP script, like follows: <INPUT TYPE="SUBMIT" NAME="btnSend"... -



Reply With Quote

