In my datagrid I have in the rowdetailsTemplate a stackpanel that has in it anther datagrid.
when I open a row that has in it a datagrid with about 20 rows and I try scrolling with the scrollbar (of the main grid) using the bottom arrow it wouldn't scroll down.
For have scroll panel you need <ScrollViewer> component as show in this post :Scrolling In Silverlight Panels
It's possible add this component inside your grid.
Related
I have a program that generates textboxes in a Panel called "PayeGrid". The panel also contains a TableLayoutPanel for displaying Headers for each row of textboxes. See the image below:
Layout
When running the program, I can scroll horizontally using PayeGrid scroll bars and the Headers also scroll along,as intended, because they are contained within PayeGrid:
Horizontal Scroll
However, when I scroll vertically, the headers also scroll down and disappear from view.
Vertical Scroll
How can I freeze the TableLayoutPanel when scrolling vertically?
instead of Using Panel and Table Layout Try Using DataGridView ..that may provide freezed header and Scroll its Content Only..
try using https://www.youtube.com/watch?v=Yfa1hnpKIzk
I have a DataGridView with a panel above it, that contains a group of textboxes above each column. My DataGridView has a horizontal scroll bar. What I want to do is when the DataGridView scrolls horizontally, scroll the panel with textboxes above it, so they stay aligned.
I tried handling the DataGridView's scroll event, but I'm not sure what to do with it. Does anyone have any examples with this?
Sorry - I thought this was an ASP.NET quesiton = ignore my answer.
I have a Windows Forms VB.NET application, with a panel that contains a few other controls.
I set the panel's AutoScroll property to True, and that seems to appropriately apply the scroll bars when they are needed. The issue is that a user must scroll all the way to the right to access the vertical scroll bar. Is there a way to always show the vertical scrollbar no matter where the user is scrolled horizontally?
EDIT
I guess the main problem I have here is that I have a DataGridView inside of a panel. I want the panel to do the vertical scrolling, and not the DataGridView. Why is it when I turn off vertical scrollbars on the datagridview and have autoscroll on the panel, a vertical scroll bar is never shown?
You could add a VScrollBar on the right side of the panel and set code behind to move the panel scroll up and down.
or
A better option may be to switch your panel to a FlowLayoutPanel which provides quite a bit of control over the scroll handles both vertical and horizontal.
Check out MSDN and see how to use all of the properties of the FLP:
I've hit a problem with my OOB silvelight 4 applicatrion.
There is a DataGrid on the page with numer of rows, so that vertical scroll bar appears for the DataGrid.
At times I need to show a child window with a message and OK button.
If before showing the child window I am using the scroll bar, that remains selected after popup is closed. If I move mouse over scroll bar data grid scrolls.
I have tried UpdateLayout, chage visibility, rebind ItemSource. Nothing helps.
Thank you in advance for any idea.
Use the UIElement.ReleaseMouseCapture() method.
Is there a way to use wheel mouse and scroll vertical bar without actually get focus on datagridview in vb.net?
andrew
You can use the scroll event to the form where the grid is found and scroll the grid by using the following article:
Controlling scrolling with the API