I have a UltraWinGrid that is bound to an UltraDataSource with multiple bands. I would like to put a search feature in my program that will allow the user to perform text/string searches in the grid. Is there an easy way to do this? If not, are there any code samples that I can look at that demonstrate traversing the cells in a grid?
Thanks!
WinGrid has no built-in searching capability, nor does WinDataSource. You would either have to loop through all the rows of the grid, or pass the search to an underlying data source that provides searching capabilities (like DataTable does through its DataView).
The following thread includes a couple suggestions for implementing searching capability:http://forums.infragistics.com/forums/p/13803/50956.aspx#50956
Is there a code example that demonstrates looping through the rows of the grid? I can't seem to find any.
var allRowsEnumerator = grid.Rows.GetRowEnumerator(GridRowType.DataRow, null, null);
{
}