I have a form that unfolds in full screen, how do I place a datagridview and listview so that when the form unfolds, the datagridview and listview, without interfering with each other, are also turned full screen? Here is what I get: enter image description here Here is what you need: enter image description here

  • Correctly use the Anchor bindings (from can be found in the properties, remove the left from the listview and add the right) or use the panels, which also help to form the UI content. - Alex Krass

1 answer 1

One option is to use Anchor bindings correctly.

enter image description here

The second of the possible options is to add a TableLayoutPanel with two columns and with properties AutoSize = True; AutoSizeMode = GrowAndShrink; Anchor = лево, низ, право AutoSize = True; AutoSizeMode = GrowAndShrink; Anchor = лево, низ, право AutoSize = True; AutoSizeMode = GrowAndShrink; Anchor = лево, низ, право . Add a DataGrid or ListView control to each column as well by setting the Dock = Fill property to them.