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

ASPxGridView batch editing - Hide update / cancel links

$
0
0

It's possible to update multiple ASPxGridViews on the ASPxButton click. To achieve this, I suggest you implement the following:

- Wrap the ASPxGridView by ASPxCallbackPanel;

- Set the ASPxButton.AutoPostBack to false;

- Call the ASPxClientCallbackPanel.PerformCallback method in the ASPxClientButton.Click event handler;

- Use the ASPxGridView.UpdateEdit or the ASPxGridView.CancelEdit to update the ASPxGridViews or cancel editing in the ASPxCallbackPanel.Callback event handler.


To hide Update / Cancel buttons, use the ASPxGridView.CommandButtonInitialize event:

[C#]
</para><para>protectedvoidgv_CommandButtonInitialize(objectsender,ASPxGridViewCommandButtonEventArgse){</para><para>if(e.ButtonType==ColumnCommandButtonType.Update||e.ButtonType==ColumnCommandButtonType.Cancel)</para><para>e.Visible=false;</para><para>}

Viewing all articles
Browse latest Browse all 7205

Trending Articles



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