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

CodePudding user response:

reference 1/f, the rabbit family - second brother reply:
do paging ah, every time do show more than 20, don't have to scroll bar is not good
this paging arguably, also can, but the window of the narrow scrollbar is out when, the display is not to scale,

CodePudding user response:

My datagridview is delegated to the backend refresh, is this the front and background thread conflicts caused by?
  •  Tags:  
  • C#
  • Related