Home Forums WinForms controls Xceed Grid for WinForms Hiding selected column

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

    I have a bound and unbound columns in datagrid. I want to hide some bound and unbound columns, but in vain. How can I do that?

    Following command line (vb.net) seems to be not working:
    mygrid.Columns(“unbound_column1”).Visible = False
    mygrid.Columns(“bound_column1”).Visible = False

    Any suggestion?

    Imported from legacy forums. Posted by PETE (had 3006 views)

    User (Old forums)
    Member
    Post count: 23064

    Could you give more details, please?
    Where in your code do you hide the columns? In the constructor? Before or after InitializeComponent?

    Imported from legacy forums. Posted by Tommy (had 286 views)

    User (Old forums)
    Member
    Post count: 23064

    Dim grid As New GridControl()
    grid.BeginInit()
    Controls.Add(grdGIV)
    grid.Columns(“unbound_column1”).Visible = False
    grid.Columns(“bound_column1”).Visible = False
    grid.EndInit()

    This is my how i did. but its not working.

    Imported from legacy forums. Posted by PETE (had 4072 views)

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