My title may be unclear for the question that I am asking.
What I have is a DataGrid with 5 rows. Upon resizing the window, the rows of the DataGrid is supposed to fill up the DataGrid space, meaning I want the 5 rows to be split evenly.
I have acheived this by doing the following:
DataGrid1.RowHeight = DataGrid1.RenderSize.Height / 5);
However sometimes when I press the down arrow key on the last row of the DataGrid, It will go down another row, which is an empty space. I would like to prevent that. Any help is greatly appreciated.
This is the datagrid with 5 rows of data.
When I select a cell from the last row and press the down arrow, this is what I get: