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.
Unfortunately, activation email could not send to your email. Please try again.

Auto-locate the first cell matching the typed chars

Thread ID:

Created:

Updated:

Platform:

Replies:

18670 Sep 7,2004 06:46 AM Sep 7,2004 07:50 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On September 7, 2004 06:46 AM

in DataGroupingControl, I want to type any chars such as type "Toro" in an cell of a column "City", It will auto search the column and locate to the first row matching the typed chars "Toro" such as a cell with "Toronto". How can I do it? TIA

Administrator [Syncfusion]
Replied On September 7, 2004 07:50 AM

Hi, you can get a hold of the FieldDescriptor and then you can loop through records with FieldDescriptor fd = groupingControl.TableDescriptor.Fields["City"]; foreach (Record r in groupingControl.Table.FilteredRecord) { string s = r.GetValue(fd).ToString(); if (s.StartsWith("Toro")) { r.SetCurrent(); break; } Stefan

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;