添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Hi friends,
I am using data grid view for displaying the data. I am binding the data from data table to data grid view .. The data from the data grid view is displaying but while while dynamically binding the data,horizontal scroll bar is enabled but not working properly .That means " when moving Scroll bar from left to right, suddenly it returned to left side ". please suggest some ideas to rectify this issue.
Thanks in advance,
1. Frozen property
One of the columns may have frozen property set as True, which should be false for all columns.
2. AutoSize and Scrollbars property
You can try setting AutoSize and Scrollbars property explicitly.
Otherwise, ScrollBar should be working absolutely fine. Rendering the DataGridViews is a costly operations, wherefore setting the layout is invoked manually, except for the initial display.
See here [ ^ ]
You should also Perform Layouting in your Resize Handler of your Form or Control.
  • Read the question carefully.
  • Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  • If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  • Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid.
  •