Home Forums WinForms controls Xceed Grid for WinForms The visible columns information

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17763 |

    Hi,

    How can I get the information of visible columns when the scroll bar scroll to middle of the grid?  

    Thanks 

    Imported from legacy forums. Posted by Michael (had 676 views)

    Diane [Xceed]
    Moderator
    Post count: 1353

    Hi Michael,

    Just to make sure I’m correctly understanding your request, do you mean that you would like to know which columns are currently visible in the view port, even if there are more columns to the left and/or right of the currently visible columns?

    Imported from legacy forums. Posted by Diane [Xceed] (had 204 views)

    User (Old forums)
    Member
    Post count: 23064

    Yes, that is what I am expecting.

    Imported from legacy forums. Posted by Michael (had 195 views)

    Diane [Xceed]
    Moderator
    Post count: 1353

    Hi Michael,

    We apologize for the delay.

    On the GridControl, there is the FirstVisibleColumn property that gives the first visible column. With that information, you could start from there and loop from that column to the next one with Columns.GetColumnAtVisibleIndex() until you reach the total width of the grid (adding up Column.Width).

    Unfortunately, there is no direct way in the public interface of our control to get that information.

    Imported from legacy forums. Posted by Diane [Xceed] (had 969 views)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.