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.
SelectedRecordsCollection selectedRecords = grid.Table.SelectedRecords; // Keep selected records
records = new List(); // After refresh Data grid if (selectedRecords.Count > 0) { foreach (SelectedRecord selectedRecord in selectedRecords) { Record r = new Record(grid.Table); r = selectedRecord.Record; records.Add(r); } }
foreach (Record record in records) { grid.Table.SelectedRecords.Add(record); record.SetCurrent(); }
// PROBLEM
The selected records has no Focus on it... When debugging, I Found that indexOf(record) return 0 ??
It seems to happen only when new records are added in the grid.
HAhaneefm Syncfusion Team November 23, 2007 11:48 PM UTC
Hi Franck,
You need to call the CurrentRecord.SetCurrent( arg) method after adding the SelectedRecords in a GridTable. Please try these code and let me know if this helps.