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 Grid Grouping Control bound to 5 DataTables which are nested from level 1 though 5. The data in the grid is also displayed in tab control graphically where there is a tab for each row at the third level and the data at the 4th and 5th level are drawn on the tab page.
I want to be able to programatlically position the correct rows in the grouping grid, expanding where necessary, so that a user can select something in a particular tab page and have the coresponding row at either the 4 or 5 level positioned and selected so the user can see the coresponding data.
I have two questions:
How do I locate data in the grid using the data in the DataTable regardless of how the user may have sorted the rows at a particular level.
How do I position and select the apropriate rows in the grid so that they are visable.
//Add the record to the selection..... gt.SelectedRecords.Add(gt.Records[0]);
To set the record as current record, you need to call the SetCurrent() method. gt.Records[0].SetCurrent();
Let me know if this helps. Best Regards, Haneef
BLBill LanglaisAugust 31, 2006 12:20 PM UTC
Hi,
Thanks for your response.
On Issue 1:
I want to find a record in the grid programatically without effecting the way the grid is sorted or apears to the user so that I can highlight it in issue 2.
>Hi Bill,
Issue 1:
Use the SortedColumns property in GridTableDescriptor to sort the table in a grid. Below is a code snippet