Datagrids????

  • Thread starter Thread starter Darryn Ross
  • Start date Start date
D

Darryn Ross

Hi,

I am wondering how you search for a specific record in a datagrid?? there
doesn't seem to be a find or a seek option attached to the class.

Thankz

Regards

Darryn
 
Darryn,

If you want to search for a specific record in the data grid, you will
really have to get the view that the grid is using, and then search on that.
You can call the Select method on the DataTable class to find the rows in
the grid that have the particular values that you are searching for.

Hope this helps.
 
Hi,

The datagrid is a UI representation of the datasource used, if you want to
search for a specific record you should do so in the datasource.

Cheers,
 
Hi Darryn,

There is no seek / search method for the grid. What do you bind the
grid to? Some data containers expose a search method. For example, the
BinarySearch method of Array, the Find method of a DataView, the
Select method of a DataTable.

HTH,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top