Home > Net > C # datagridview control, polling the bound data source, a scroll bar has been at the beginning of h
C # datagridview control, polling the bound data source, a scroll bar has been at the beginning of h
Time:10-22
C # datagridview control, polling the bound data source, and then form the data quantity is too large, sliding the scroll bar, the position of the scroll bar at the time of the next polling will be flushed to the first position, Do you have any good ways to do rebind the data source, the position of the scroll bar will not change at the same time, Is currently use a method: remember the scrollbar e.N ewValue, then put the datagridview. FirstDisplayedScrollingRowIndex attributes to match, the problem is that this will cause my front pull the scroll bar when not so smooth,
CodePudding user response:
Do paging ah, every time to do more than 20, don't have to scroll bar is not good