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
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
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
Hi Vince,
I have been looking into your requirement and in order to achieve the desired behavior you could set the ‘HeightInInfiniteContainers’ property to “Infinity”:
<igWPF:XamDataGrid.ViewSettings>
<igWPF:GridViewSettings HeightInInfiniteContainers="Infinity"/>
</igWPF:XamDataGrid.ViewSettings>
Let me know, if you need any further assistance on this matter.
Thank you for reply. I have created a new case with number CAS-142611-S4G4Z6 about your issue in order to continue our discussion there.
Thank you for understanding.
Hi Yanko, sorry but I am a bit confused. Here is the behavior that I am observing:
With a WPF Window I have a ScrollViewer that contains a Grid that contains a XamDataGrid. I disable the scrolling of the items within the XamDataGrid because I want to display a single vertical scrollbar for the entire window, including any content above the XamDataGrid. If I bind the XamDataGrid to a large number of items (say 200), the vertical scrollbar will show up for the window. The XamDataGrid will be slightly larger than the size of the window to accommodate some of the 200 items, but even if I scroll to the bottom of the window I cannot see all of the items in the XamDataGrid (it cuts off around item #45). If, however, I focus on the XamDataGrid and use the arrow keys I am able to scroll through all 200 records.
The behavior is different than a standard System.Windows.Controls.DataGrid. The ScrollViewer attached to the Window allows me to scroll through all 200 items.
I have attached a sample app to demonstrate.
Regards,
--Vince