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
420
UltraWinGrid Creating AutoSearch Columns Using Textbox of the form
posted

There is a Execllent way of searching the UItraWinGrid columns which is given in the Followings Knowledege base article

http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=8077

but is it possible to use a textbox on the form, type in the textbox and get the columns data from which ever column selected.

Here For Example i have entered value in textbox it should select the respective row and highlight it and make it the first row of the Grid,OR is there any feature of UltraWinGrid in which i can bind other control like textbox and Search the UltrawinGrid cells

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    There are a couple of ways you could do this.

    One way would be to modify the code in the KB Article. The article uses a buffer to keep track of the string as you type it, but you could just as easily pass in a string from a TextBox in the TextChanged event.

    The code that search the grid is really not complicated at all, it just loops through the cells to find one that matches the text you want.

    Another option might be to use RowFiltering. By default, the filtering funtionality hides the rows that are filtered out, but it doesn't have to. The RowFilterAction property on the Override object gives you the ability to apply an appearance to the row instead of hiding them. You would then use the FilteredInRowAppearance to decide what the rows that meet the filter criteria look like.

    This won't scroll the row in to view, though - it can't since there can theoretically be more than one row.

Children