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.
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
Hi, may be i wasn't very clear, sorry, i need a complete example of how to create dynamically things like template columns with complex objects inside, comboboxs, checkboxs, multiple textboxs, etc, and how to binds this objects in a MVVM scenario, for example.
Hi,
Have you taken a look at our samples browser?
There are examples on creating both TemplateColumns and UnboundColumns:
http://labs.infragistics.com/silverlight/lobsamples/2010.3/
http://labs.infragistics.com/silverlight/lobsamples/2010.3/#/Samples/Grid/ColumnSettings/GridTemplateColumns
http://labs.infragistics.com/silverlight/lobsamples/2010.3/#/Samples/Grid/ColumnSettings/GridUnboundColumn
As for binding in an MVVM scenario, i'm not sure what you're looking for?
You can simply bind to the data from your row in both scenarios.
If you can be more specific on what you're having problems with, i'd be happy to provide more detailed information.
-SteveZ