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 have a form that has a Bound Grid control that I am populating with the contents of a SQL Table (Me.GridDataBoundGrid1.Model.PopulateValues(GridRangeInfo.Cells(0, 1, nRow, nCol), myArray) where myArray is the contents of the table and nRow and nCol are the size of the grid. Now I am trying to re-populate the grid from an Query Dialog that prompts the user for various criteria (ie, Show all rows with County codes = 5, or all rows that have the name 'Fred' in the FirstName field, etc). I am trying to re-query the data and re-populate the grid without having to close the query dialog. Any ideas?
Thanks.
David
ADAdministrator Syncfusion Team March 11, 2003 05:55 PM UTC
With a GridDataBoundGrid, you should not use PopulateValues. Instead you should just set this.gridDataBoundGrid1.DataSource = myDataTable;
Then if you use the RowFilter property of myDataTable.DefaultView to impose the filtering you are doing, the filtered view should just appear in the the GridDataBoundGrid with no further work.