I create my own very simple grid control. I decided to get from ScrollableControl (this is what the DataGridView does) and from there.
I have a lot of code to draw my cells, but it's hard for me to figure out how to use the scrollable part of ScrollableControl. It seems that the ScrollableControl is designed as a container of other controls, and the "auto" scroll functions are oriented around child controls that are outside the control.
I just want to set the βvirtualβ area of ββthe control, so I get the scrollbars of the right size, and then create my own drawing in the control to create my own βviewβ.
I am basically very upset about this. What is the easiest way to make this work?
source share