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

How to use custom ASPxGridView template in a Web XAF application

$
0
0

The ASPxGridView, which is used as the grid list editor in XAF Web applications, provides the capability to customize its style via templates. The result of such a customization is shown in the ASPxGridView Demo.

You can achieve the same result in XAF. The difference is that you will need to create controls dynamically.

In this example, a custom DataItemTemplate - UpDownButtonsTemplate - is implemented to display the Up and Down buttons in the grid column. These buttons are intended to change the position of grid rows. This is implemented via grid callbacks - when the button is clicked, a grid callback is performed on the client side, and the server-side code changes the position of the grid rows by changing the Index property, by which the grid is sorted.

See also:
ASPxGridView.Templates Property
GridViewDataColumn.DataItemTemplate Property
How to implement multi-row editing in the ASP.NET ListView

Example Comments

Added By: Apostolis Bekiaris (DevExpress) at: 7/9/2013 5:25:17 AM    

See also DetailView as a PreView in GridView
http://apobekiaris.blogspot.gr/2013/07/detailview-as-preview-in-gridview.html


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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