where can I find guidelines for using xamGrid in a silverlight project with a ORM entity framework?
Ok, I have decided not to use autogenerated so now I can select my columns :) this helps.
However now I have a question about using the ComboBoxColumn item in the grid.
I set the key to ProductTypeID field.
I set the DisplayMemberPath to ProductType
I set the valuememberpath to ProductTypeID
My question is what do I set the ItemSource to in order to get the comboboxcolumn populated upon load of the xamgrid?
I am no quite sure what exactly do you mean by hiding columns.
One way would be to remove the columns you don't want from the Columns collection or simply set the column's Visibility property to Collapsed(Suitable when you plan to turn certain columns on and off). Here is a link with more details on working with columns.
Another approach would be using data annotations on your domain objects and marking certain properties with the [DisplayAttribute(AutoGenerate(false)] so the columns wont get auto generated in first place. For more info on DataAnnotations support of XamGrid check this out. Note that DataAnnotations are not supported in the XamGrid for WPF.
The last approach you could take is to hook up to ColumnAutoGenerated event of the xamGrid and put the logic which decides which columns to be Auto Generated.
Regards,
Ok this was a big help to getting started.
Next question, what's the best way of going about hiding columns?
Hi foxjazz,
check out his help page.
Hope this helps