Skip to main content

Add/Remove Columns at Runtime

Comments

1 comment

  • Dapfor Team

    Hi,

    The grid is designed to add/remove columns at runtime with the following API:

     

    //Add/remove column
    Column column = new Column("SomeColumn");
    grid.Headers[0].Add(column);
    grid.Headers[0].Remove(column);

    //Get existing column
    column = grid.Headers[0]["SomeColumn"];
    if (column != null)
    {
    //...
    }

    //Iterate all columns in the header
    foreach (Column column in grid1.Headers[0])
    {
    //...
    }

     

    Best regards,

    Dapfor

     

    0

Please sign in to leave a comment.

Powered by Zendesk