Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
325
Searching a column in ultragrid
posted

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

 

Parents
No Data
Reply Children