Home Forums WPF controls Xceed DataGrid for WPF Set newly added grid column active

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

    How do I set the newly added grid column active?

    Imported from legacy forums. Posted by swong (had 2218 views)

    Xceed Support
    Member
    Post count: 5658

    myDataGridControl.CurrentColumn = myNewColumn;

    Imported from legacy forums. Posted by Marcus [Xceed] (had 198 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi Marc,

    Actually, setting the current column active doesn’t solve my problem.
    This is my situation, I add column programmatically to a data grid to a point that the column is not visible on screen anymore, and I want the column added always visible and be focused.

    my code:
    Xceed.Wpf.DataGrid.Column myCol = new Xceed.Wpf.DataGrid.Column();
    myXceedDataGrid.add(myCol);
    .
    .
    .

    Thanks

    Steve

    Imported from legacy forums. Posted by swong (had 3419 views)

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