Hi,
I have a scroll bar in the main page I don’t want one for the XamDataGrid, how to disable the vertical scrollbar in xamdatagrid.? The vertical scroll bar in XamDataGrid is always seen. Plus we should be able to scroll through all the records in the XamDataGrid with the help of scroll bar in the main page.
Please help with this.
Thanks
Arpita
Hello,
You can create a style for the RecordListControl and in its ControlTemplate disable the ‘VerticalScrollBarVisibility’ like :
<Style TargetType="{x:Type igDP:RecordListControl}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type igDP:RecordListControl}">
<ScrollViewer CanContentScroll="true"
VerticalScrollBarVisibility="Disabled"
HorizontalScrollBarVisibility="Visible" >
<ItemsPresenter/>
</ScrollViewer>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
If you have any other questions on this matter, feel free to ask.
In xamdatagrid i have one column whose value is getting changed whenever i started scrolling.
Since , unlike other column the property to which this column has been binded has NotifyPropertyChange implemented(Two way binding, update source trigger = notifyPropertyChanged)'
Whenever, i try to scroll down the data . values for this column is getting shifted from one row to the another.
SomeWhere, i have read that this is happening because of row virtualization and if i put the same grid in scrollviewer this will disable the virtualization.
For the above one, i have removed the vertical scrollbar from the xam data grid and put it inside the scrollviewer, but the problem which i am facing over here is that i am not able to iterate the whole records by using the arrow keys(this behaviour is required).
Required Behaviour:
1) If there is a possibility scrolling won't change the data in the column(on which iNotify property has been implemented whenever property value changes as i required the changed value whenver user edits that column.)
IF NO
then by disabling the virtualization below behvaiour is required:
2) Arrow Keys also move the scrollviewer along with it and i'll be able to iterate all the records by going through the arrow keys
I have also tried to resolve this by setting the
RecordContainerGenerationMode="PreLoad" (Which in turn stops the virtualization) and while scrolling i am not facing issue with above column data.
but the above one is somehow causing the performance issue especially while sorting the columns on clicking at eac column,it is taking a considerable amount of time.
Column Properties:-
Column is in edit Mode
Column is binded to property which implement notify property changed