I programmatically build the fields, and I want the first field to be fixed to the near side. This doesn't work -- any thoughts?
field.FixedLocation =
FixedFieldLocation.FixedToNearEdge;
That's pretty much what I had -- the real problem was that I had an errant LoadCustomizations() after setting the FixedLocation, which (of course) cleared it.
Thanks.
Hi,
You can try to enable fixing for all the fields using the AllowFixing property of the grid :
xamDataGrid1.FieldSettings.AllowFixing = AllowFieldFixing.NearOrFar;
and then set the FixedLocation property of the Field :
Field customField = new Field();customField.Name = "Name";customField.FixedLocation = FixedFieldLocation.FixedToNearEdge;customField.Settings.AllowFixing = AllowFieldFixing.No;
xamDataGrid1.FieldLayouts.Add(customField);
Hope this helps
Vlad