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
535
Scroll to a specific column in the grid
posted

Hi,

I have more than 100 columns on my grid... 

I want to scroll to the a specific column when the users choose one from the combobox 

Can you tell me how i can d that with thre UltraGrid.

Thx

  • 7535
    Offline posted

    Hello Michel,

    Thank you for your post. In order to scroll to a specific column into view, you can use ScrollColIntoView(UltraGridColumn method something like this:

    UltraGridColumn column = this.ultraGrid1.DisplayLayout.Bands[0].Columns["Fax"];
    
    	// Call ScrollColIntoView. Pass true for the leftAlign to scroll the column as much to
    	// the left as possible.
    this.ultraGrid1.ActiveColScrollRegion.ScrollColIntoView( column, true );


    Let me know if yopu have any question.

    Sincerely,
    Divya Jain
    Associate Software Developer