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.
Hey guys, I'm trying to get a chart which displays the same data as the grid, so to do this I need to get the row filter from the grid.
I havent been able to find the row filter property of a filtered row. I've resorted to writing something like this which loops through the RecordFilters collection of the table descriptor. This is bound to cause bugs so I dont really want to use it, dont you guys have something somewhere that returns the DataView.RowFilter value? You have to do a similar construction of this string somewhere.
string rowFilter = String.Empty; string valueFilter = String.Empty; string seperator = String.Empty; foreach ( RecordFilterDescriptor recFilter in gridTable.TableDescriptor.RecordFilters ) { rowFilter += recFilter.LogicalOperator.ToString() + " " + recFilter.FieldDescriptor.Name + " IN( "; //If its a string then wrap each value with '. if ( recFilter.FieldDescriptor.FieldPropertyType == typeof( string ) || recFilter.FieldDescriptor.FieldPropertyType == typeof( DateTime )) seperator = "'"; else seperator = String.Empty;