We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Expression columns in gridGroupingControl

Hi , We have a background dataTable which contains expression columns. For eg., DataColumn col1 = new DataColumn(); col1.Expression = col1 – col2; This.dataTable.Columns.Add(col1); We then bind this table to the grid. We can’t use the facility present in the grid for creating expression fields as we have other constraints. The problem is whenever we have such columns the grid takes a lot of time to come up otherwise its quite faster. Are there any means to improve the performance? Thanks, Prathima

1 Reply

AD Administrator Syncfusion Team September 27, 2005 02:49 PM UTC

I suspect the slowdown is related to the DataColumn.Expression, and does not have anything to do with the GridGroupingControl as the grid treats the expression column just like any other column in the datatable. One thing you can try is to use an unbound column in the GridGroupingControl instead of a Expression column in the DataTable. Then in the QueryValue event, you can set the calculated value there using the passed in record. Take a look at this sample. It shows how to add a unbound field. Syncfusion\Essential Suite\3.3.0.0\Windows\Grid.Windows\Samples\Grouping\EmployeeTerritoryOrder

Loader.
Live Chat Icon For mobile
Up arrow icon