Well, imagine that I have a “text box”, a “button” and a loaded “xceed grid” on a form. Now, what I need is to insert some text into the “text box” a press the “button”. That would, “supposely”, search the “xceed grid” datarows collection for the specified text and then, retrieve me ONLY the rows that mach the “text box” text (*bla*, bla.*, “bla” etc…)
Is this possible?
Tks in advance!
Imported from legacy forums. Posted by EFileTahi-A (had 3087 views)
Yes, this is possible. Instead of binding the GridControl to a DataTable, create a DataView on the DataTable, and bind the GridControl to the DataView. The DataView has a property RowFilter, that is a string you can use to filter the view.
Imported from legacy forums. Posted by Tommy (had 214 views)
You just want to retrieve the rows? I thought you wanted to filter the grid, and hide the rows that don’t match. Here’s a function that returns an ArrayList with the matching rows for a specific text.<code>using System.Collections; using Xceed.Grid; using Xceed.Grid.Collections;