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.
in GridGroupingControl,I want to set default focus at a cell by knowing its columnname and value. such as set focus to a cell its column named as "City" and its display value as "City of Toronto"
TIA
ADAdministrator Syncfusion Team September 16, 2004 07:42 PM UTC
There is currently no Find support. One thing you can do is to filter for the string, save the record, then undo the filter, and then set the current cell.
this.gridGroupingControl1.TableDescriptor.RecordFilters.Add("[City] LIKE ''City of Toronto''");
GridRecord rec = this.gridGroupingControl1.Table.FilteredRecords[0] as GridRecord;
this.gridGroupingControl1.TableDescriptor.RecordFilters.Clear();
int row = this.gridGroupingControl1.Table.DisplayElements.IndexOf(rec);
int col = this.gridGroupingControl1.TableDescriptor.VisibleColumns.IndexOf("Col1");
this.gridGroupingControl1.TableControl.CurrentCell.MoveTo(row, col + 1);