APNSoft Controls [4.5.2.20]
DataGrid > Templates


Various parts of the DataGrid can be configured by using templates. Templates are easy to use powerful tools, which allow changing component's appearance and behaviour flexibly on developer's demand.


Templates applied to columns.


Template applied to Bottom Bar.

This template is an XML file, which defines the structure and the layout of elements on Bottom Bar. Available elements:
Template is applied to a Bottom Bar by using the GridBottomBar.Template property.




Template applied to Context Menu.

This template is an XML file with items and separators. Available elements:
Template for Context Menu can include variables, instead of which data is inserted. Available variables: Use the GridContextMenuHeader.Template and GridContextMenuRow.Template properties to apply a template for Context Menu.