Data Grid - Form specific questions.
Comments
-
I have following simple questions related to Data grids on a form:
Can I use validations on the fields of a data grid (I’m using the property grid edit mode) and if yes how can I do that? Is custom attribute on the data structure a way to validate the fields?
Can I set a default sorting of the columns shown by the data grid?
How can I set the columns order in the Datagrid?
-
Hi,
We currently do not have any way to show validation on the datagrid on run time. I will ask our development team whether this can be a possible feature request and keep you posted on it.
Yes, you can set default sorting on the columns shown on your datagrid. Click on your Datagrid and in the properties : Click on Edit icon to edit a specific column. Click on Can sort check box and set the Sort Order to Ascending or Descending.
In the Datagrid properties -> in the columns section : When you right click on the column name, there are actions to Move up and Move down which will let you set the order of the columns.