Hi,
I trid Addding Record filters as suggested.
grid.TableDescriptor.RecordFilters.Add(new RecordFilterDescriptor "isVisibleRow", "[isVisibleRow] like 'true'"));
This works. Now I can bind the datatable and yet filter the rows based on the conditions.
Many Thanks,
Deepa
>
Hi Deepa,
Thank you for posting query to us and the details.
Instead of doing a select on your dataset and binding the resulting datarows you may bind the whole datatable and hide the rows/records you dont want based on some condition.
By default, the GridGroupingControl does not support rows with individualized rowheights. To get this support, you need to add a custom GridEngine as in the Syncfusion Browser sample ResizableRows.
\\Syncfusion\EssentialStudio\6.2.0.40\Windows\Grid.Grouping.Windows\Samples\2.0\FeaturedSamples\ResizableRows
After having this you can hide rows in grid. For your case the best way to do this would be to have an extra column in your DataTable say ‘HideStatus’(hide this column) to keep track of the hidden rows. You can initially set the value to be false and apply filter from Grid to show the records that satisfy the false criteria.
So whenever you need to hide a row, you just need to set the bool value of that Row field to true.
Please refer this sample for the implementation.
http://www.syncfusion.com/Support/user/uploads/GGCHide_4c50dba8.zipKindly let us know if you need any further assistance.
Thank you for using Syncfusion Products.
Regards,
Subhasheela R