I have a grid on a form. I want the form to always occupy the entire screen space, irrespective of resolution.
I want the grid to occupy the entire form space with the last 2 rows of the grid hosting buttons for Add, Edit, Save, Delete, Refresh etc. These last 2 rows should be always visible, irrespective of form scrolling or grid scrolling. And of course, these last 2 rows are non-editable as they contain only buttons.
How can I do this ?
Imported from legacy forums. Posted by Rajesh (had 1732 views)
The grid is not different from other controls. Set its Anchor property so it follows the form size when expending the form to maximum.
Use the FixedFooterRows collection to keep the rows always in view. You can use ValueRow for those rows, and wrap buttons through the CellEditorManager and CellViewerManager classes. Here is more documentation from the help documentation on wrapping controls in these classes :