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
1059
Ultragrid column display
posted

In datagridview, if I want to display column 5 in position 1 I would do the following:

Datagrid[4].DisplayIndex = 0;

How do i do this with ultragrid ?

Thanks

Joe

Parents
No Data
Reply
  • 195
    Suggested Answer
    Offline posted

     

    Hi, assuming you're using a single band, you could do something like:


    Me.UltraGrid.DisplayLayout.Bands(0).Columns("ColumnName").Header.VisiblePosition = 1


    I'm not 100% sure of the top of my head whether VisiblePosition is a zero based index though.

    Steve

    
    
    
    

     

Children
No Data