Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / How to Loop through UltraGrid Columns by Display Order

How to Loop through UltraGrid Columns by Display Order

New Discussion
Brian Gerdes
Brian Gerdes asked on Jan 28, 2016 4:23 PM

Is it possible to loop through the columns of the UltraGrid in display order.  Say a user manually moves one of the columns.  I would like to be able to loop through the columns in that new order.

Sign In to post a reply

Replies

    • 0
      Sahaja Kokkalagadda
      Sahaja Kokkalagadda answered on Jan 28, 2016 4:10 PM

      Hi Brain,

       I’m glad you resolved your issue, I was going to share you the below link which pretty much did the same thing. 

      http://help.infragistics.com/Help/Doc/WinForms/2012.1/CLR2.0/HTML/Infragistics2.Win.UltraWinGrid.v12.1~Infragistics.Win.UltraWinGrid.UltraGridColumn~GetRelatedVisibleColumn.html

      Please let me know if you have any other questions. 


      Sincerely,

      Sahaja Kokkalagadda

      Associate Software Developer, Windows Forms

      http://es.infragistics.com/

      • 0
        Mike Saltzman
        Mike Saltzman answered on Jan 28, 2016 4:23 PM

        Both of the links here related to getting a related visible column from an existing column. But the StackOverflow article makes the assumption that Columns[0] is the first visible column, which is not always true. You should use the GetFirstVisibleColumn method on the band to get the first column. And then use GetRelatedVisibleColumn after that.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Brian Gerdes
Favorites
0
Replies
3
Created On
Jan 28, 2016
Last Post
10 years, 2 months ago

Suggested Discussions

Tags

Created by

Created on

Jan 28, 2016 4:23 PM

Last activity on

Feb 24, 2026 2:20 AM