Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Create a xamGrid dynamically in code
posted

Hi, i would like to see an example of how to create a xamGrid dynamically. I was trying to do that, but i can't find the way.

Thanks.

Emiliano.

Parents
  • 12631
    posted

    Here is an example of instantiating the grid and adding it to the root layout:

    Infragistics.Controls.Grids.XamGrid grid = new Infragistics.Controls.Grids.XamGrid();
    this.LayoutRoot.Children.Add(grid);

    Once you get the grid instantiated you can use its API to create column layouts and columns and to configure the different features it offers like editing, sorting, grouping and filtering.

    Devin

Reply Children