c# - Two datagrids that share scroll positions, share datasource but do not sync scroll postion -


Hello Stack Overflow,

I have a winforms app that has two data grid views in the same To control that point on the same binding resource, its purpose is to show the column 'Customer Name' at all times and the remaining datagrid can be reviewed (horizontally scrolled.)

Can I sync up? At present, if the user opens below in the list of scrolling customers, then only one datagrid is affected. Do I need to remove scroll bars from one, and it needs to spin both scenes?

Thank you

You can use the first grid's scrolling event and the first Set the offset scroll of the second grid with the value of the grid scroll

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -