User (Old forums)MemberMay 14, 2007 at 7:50 amPost count: 23064
Please tell me about how to perform logical(page-wise) scrolling on Xceed Data Grid Control for WPF????
Thanks in advance
Imported from legacy forums. Posted by Satheesh (had 4573 views)Xceed SupportMemberMay 14, 2007 at 9:10 amPost count: 5658
Can you provide some more details on what you are trying to attempt?
Imported from legacy forums. Posted by Marcus [Xceed] (had 227 views)User (Old forums)MemberMay 14, 2007 at 10:44 amPost count: 23064
How to scroll the Xceed Datagrid Control in such a way that the entire- content(page) in the view port should be scrolled, instead of, scrolling content by a predetermined physical increment, typically by a value that is declared in pixels. Suppose if we consider that the view port contains a page, how to perform page-by-page scrolling in the Data Grid Control.
Imported from legacy forums. Posted by Satheesh (had 325 views)Xceed SupportMemberMay 14, 2007 at 11:14 amPost count: 5658
I suggest using the PageDown/PageUp/PageLeft/PageRight functions from the ScrollViewer of the DataGridControl…
There is a template part in the DataGridControl’s Template called “PART_ScrollViewer”, which you can lookup to get a reference to the grid’s ScrollViewer…
I suggest using these functions instead of creating a custom logic since the Panel used as the ItemsHost can implement the IScrollInfo interface, in which the Pagexxx functions could be implemented using a custom logic already.
Imported from legacy forums. Posted by Marcus [Xceed] (had 928 views)User (Old forums)MemberMay 14, 2007 at 11:22 amPost count: 23064
Could u please provide me the sample code???
Thanks in advance
Imported from legacy forums. Posted by Satheesh (had 350 views)Xceed SupportMemberMay 14, 2007 at 2:15 pmPost count: 5658
The code is:
ScrollViewer sv = myDataGridControl.Template.FindName(“PART_ScrollViewer”, myDataGridControl) as ScrollViewer;
Imported from legacy forums. Posted by Marcus [Xceed] (had 303 views)User (Old forums)MemberMay 15, 2007 at 3:28 amPost count: 23064
While I’m trying to execute the following code, the error named “Object reference not set to an instance of an object” is thrown from the C# code. Could you please tell me what mistake I have done?
ScrollViewer sv = mygrd.Template.FindName(“PART_ScrollViewer”, mygrd) as ScrollViewer;
sv.ScrollChanged += new ScrollChangedEventHandler(sChanged); // Error line
public void sChanged(Object sender, ScrollChangedEventArgs e)
Imported from legacy forums. Posted by Satheesh (had 5850 views)
- You must be logged in to reply to this topic.