We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to set focus to a cell in GridGroupingControl

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

1 Reply

AD Administrator Syncfusion Team September 16, 2004 03:42 PM

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);

Loader.
Live Chat Icon For mobile
Up arrow icon