Hello,
I have a Horizontal XamDataGrid in a fixed-width container. It is bound to a DataTable. The DataTable periodically has rows added to it. When the XamDataGrid becomes too wide, a horizontal scrollbar appears. I prefer that the scrollbar be visible from the beginning, but disabled until it is needed. Is there a way to do this?
Bill
Hi... This correct...But of the image is last column.... Actually i am displaying in two rows eith last row with row 0 as image and row 1 as also image.I have written property as told but also i can able to resize the width....
<igDP:Field Name="Image" Label="Logo"> <igDP:Field.Settings> <igDP:FieldSettings AllowResize="False" /> </igDP:Field.Settings> </igDP:Field>
Hi.... i have added some images in xamdatagrid using Unbound fields and fields.So i want that fiels width sould be fixed so that user cannot resize the width.How can i do it...
Alex,
The XamDataGrid is bound to the DefaultView of a System.Data.DataTable. I think that is what you mean by 'flat data'.
I copied the xaml code to <Application.Resources> and it works. Thank you.
Bill,
I got an update from the Engineering team.
Only in the case in which you have a flat data, you can accomplish this by retemplating the RecordListControl:
<Style TargetType="{x:Type igDP:RecordListControl}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type igDP:RecordListControl}">
<ScrollViewer
RenderTransform="{TemplateBinding FixedNearElementTransform}"
CanContentScroll="true"
HorizontalScrollBarVisibility="Visible"
VerticalScrollBarVisibility="Visible">
<ItemsPresenter RenderTransform="{TemplateBinding ScrollableElementTransform}"/>
</ScrollViewer>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Hope this helps.