I am trying to search the UltraGrid based on some text. I created a AfterSortChange event for my
Ultragrid and I am grabbing the column in the event handler like this
columnToSearchBy = myGrid.DisplayLayout.Bands[0].SortedColumns[0];
If the user first clicks one of the columns and than calls the search method it works fine because I have determined the column to search. But if the user does not click on any columns and calls the search function, I have logic inside my search method to check if columnToSearchBy is NULL.. If it is NULL, I want to set it to the first column displayed in UltraGrid. I have tried many different ways and I can't grab that first UltraColumn.
Appreciate any help
yes it worked. except there is no property on VisibleHeader called Column it is actually
grid.ActiveColScrollRegion.VisibleHeaders[0].Header.Column
Thanks
grid.ActiveColScrollRegion.VisibleHeaders[0].Column