What should the align value be set to on datagrid with subdatagrid?
The datagrid has 500 to 700 rows with 2 to 15 rows in the subdatagrid.
When I open the datagrid and scroll to the last row and click to expand node to
show rows in the subdatagrid, it does not show until I move the mouse wheel within the subdatagrid.
However, if I do this 8 to 10 rows up, click to expand node it shows the subdatagrid rows.
Why and how to work around this?
Thanks
Garnett
It's the height of the subdatagrid itself that determines the rowheight. There is no need to set an align value. You can check if the following code helps limiting the height of the grid, or setting it to another value depending on the amount of rows in the subgrid
procedure TForm130.TMSFNCDataGrid1RowExpand(Sender: TObject; ARow: Integer);
begin
if TMSFNCDataGrid1.RowTypes[ARow] = grtNode then
TMSFNCDataGrid1.RowHeights[ARow + 1] := TMSFNCDataGrid2.Root.TotalRowHeight + TMSFNCDataGrid2.Root.TotalFixedRowHeight;
end;