I would like for the entire xamgrid to be in Edit Mode all the time or at least appear to be. When I put input controls such as combo boxes and textboxes in the ItemTemplate, they don't stretch horizontally, so the ItemTemplate/EditTemplate don't look the same - which I need them to. I would be happy either setting the whole grid in Edit Mode or making it so the ItemTemplate looks exactly the same as the Edit Template.
thanks
-greg
I guess what I need is for the whole thing to be in edit mode and not use ItemTemplate/EditTemplate. Is that possible?
Hi,
The xamGrid only has the concept of one row being in edit mode at any given point in time.
If you wan't the entire xamGrid to be editable, then you're going to have to modify the display elements, i.e. the ItemTemplate of all of your columns to be your editors. (Note then the xamGrid's editing events won't fire.)
To make them look like they do when in edit mode, you have to do 2 things.
1. Set the HorizontalAlignmentProperty to stretch. <ig:TemplateColumn Key="Title" HorizontalContentAlignment="Stretch">
2. Remove the Padding from the CellStyle
<Style TargetType="ig:CellControl">
<Setter Property="Padding" Value="0"/>
</Style>
Hope this helps,
-SteveZ