Ask a Question related to ASP.NET General, Design and Development.
-
Matt Tapia #1
edit button in datagrid
I want to add a button within an Item Template column that will set the edit
mode for the current item in the grid. can anyone tell me how to do it
without adding an edit command column?
Thanks!
Matt Tapia Guest
-
Would like to load a datagrid already in edit mode instead of having the user click the edit button
Now my asp.net datagrid shows an edit button and clicking it puts the datagrid in edit mode. I would like to: 1) possilby load the page already... -
Trigger Datagrid Edit From Command Button
Hey all, I was wanting to know if this was possible. I have a Datagrid with inline editing capabilites and all that jazz, it all works. What I... -
Adding javascript function to update button in datagrid edit row
I'd like to run a javascript function when you click the update button on an edit row, but I've no idea how I'd set it. Can't find any examples,... -
DataGrid contains no data after postback of edit button click...
This is specifically what is going on in my application:... -
Edit button in datagrid doesn't work!?
Hi, I have this piece of code: <asp:datagrid id="dgRezervirano" runat="server" CssClass="rezervacije" AutoGenerateColumns="false"... -
Chris Jackson #2
Re: edit button in datagrid
> I want to add a button within an Item Template column that will set the
editSetting the edit item is as straightforward as datagrid.EditItemIndex => mode for the current item in the grid. can anyone tell me how to do it
> without adding an edit command column?
<whatever value you want>
So, in essence, you just need a button to post back, and then handle this
post back in an event handler that sets the EditItemIndex. Using an edit
command grid makes this easier, because you can then trap the EditCommand
event handler and use the DataGridCommandEventArgs e.Item.ItemIndex to get
this value. But once you roll a mechanism to determine what row should be
edited, it's just a single line of code to set this row into edit mode.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows XP
Windows XP Associate Expert
--
Chris Jackson Guest



Reply With Quote

