I have a datagrid bound to a recordset. The record count of the recordset will vary each time. So I want to set the height of the datagrid to fully display all rows (records).
Simply multiplying the record count times the datagrid's RowHeight property does not provide enough space. I realize that I must also add in the height of the Headline, but I do not see that property listed.
Even if I add one more RowHeight to the datagrid's Height (thinking the height of the Headline is the same as the RowHeight), that is still not enough space.
Is there any way to determine the EXACT height needed for the datagrid so that it fully displays all records in the recordset?
I've been looking for an answer to this for a long time, so any help would be greatly appreciated!
Larry
Simply multiplying the record count times the datagrid's RowHeight property does not provide enough space. I realize that I must also add in the height of the Headline, but I do not see that property listed.
Even if I add one more RowHeight to the datagrid's Height (thinking the height of the Headline is the same as the RowHeight), that is still not enough space.
Is there any way to determine the EXACT height needed for the datagrid so that it fully displays all records in the recordset?
I've been looking for an answer to this for a long time, so any help would be greatly appreciated!
Larry