The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I was just looking for an answer to the same question. There is a GridFilterBar class, I was wondering if it uses some publicly accessible methods in GridDataBoundGrid to filter rows or does it modify the datasource on the grid directly?
ADAdministrator Syncfusion Team March 28, 2003 09:07 AM UTC
If your Windows Forms DataGrid is bound ta a DataTable, say dt, then you can filter the displayed grid without changing its datasource, by setting the RowFilter property on the the defaultview of the datatable.
dt.DefaultView.RowFilter = "[Col1] LIKE 'a*'";
This would show only rows whose entry in Col1 starts with an a.
ADAdministrator Syncfusion Team January 10, 2006 06:33 PM UTC
Clay
How can I filter my GDBG if the Grid is bounded to a business object not to a data table.
Thanks
Gk
>If your Windows Forms DataGrid is bound ta a DataTable, say dt, then you can filter the displayed grid without changing its datasource, by setting the RowFilter property on the the defaultview of the datatable.
>
>dt.DefaultView.RowFilter = "[Col1] LIKE ''a*''";
>
>
>This would show only rows whose entry in Col1 starts with an a.
>