This is a migrated thread and some comments may be shown as answers.

Quick way to find a record in a bound gridview?

1 Answer 39 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dave Galligher
Top achievements
Rank 2
Dave Galligher asked on 08 Jun 2011, 12:18 AM
Hi guys,

I'm looking for  a quick way to find a record based on one or several values in the grid, datasource for the gridview could be 100 thousand records or more (tied into inventory items for a large grocery store). Telerik gridview is used for a lookup,basically a seed value get's passed to the grid and it needs to locate the record (aka Row) and highlight it.

Could some direct me to right location of an example that would demonstrate the required functionality? Help is appreciated. Thank you.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 10 Jun 2011, 11:08 AM
Hello Dave,

Thank you for writing.

There are two ways to achieve this. 

The first one is to use our filtering mechanism and filter the desired columns in order to get to a specified record. You can either enable the end-user to filter or you can filter the data programmatically

The other way to get a certain record is to iterate over the rows and cells in a loop and check for a certain value. 

I hope that you find this information helpful.

Regards,
Stefan
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
GridView
Asked by
Dave Galligher
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Share this question
or