Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How Insert, Update and Delete ASPxGridView's records with buttons

$
0
0

To change ASPxGridView's data from the client side, there are appropriate ASPxClientGrid methods:

AddNewRow
DeleteRow
StartEditRow

To save or cancel changes, there are:
UpdateEdit
CancelEdit

The following example implements a custom defined toolbar with ASPxButtons, which perform all the editing capabilities over a grid's data source.

Note: to distinguish records, the property AllowFocusedRow should be enabled for grid.

See Also:
Switch to the edit mode by clicking a status bar button or by double-clicking a row
Editing an in-memory dataset
How to enable/disable command buttons on the client side

Question Comments

Added By: Matthew moore 3 at: 5/24/2012 6:08:25 AM    

I am having a hard time getting the buttons to work. Am i missing something on the backend which might stop it from working. Is there a place i can get more direction or post my code ?

Added By: BiBOARD BiBOARD at: 3/15/2016 8:21:01 AM    I tried this example, it does not work.
In fact the events: RowDeleting, RowInserting, RowUpdating, InitNewRow are not fired at all. Can you explain me what I miss?

Thanks
Added By: Vova (DevExpress Support) at: 3/15/2016 9:20:58 AM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T356923: ASPxGridView - The RowDeleting, RowInserting, RowUpdating and InitNewRow events aren't fired. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>