When i expand the master detail datagrid, it shows only a line under the master record as you can see in the attachement.
What can i do, is it because i have a hdpi screen?
Thanks
Adrian
When i expand the master detail datagrid, it shows only a line under the master record as you can see in the attachement.
What can i do, is it because i have a hdpi screen?
Thanks
Adrian
So the row height is set to the DetailControl height, so it’s unclear which height you have set on the subgrid? Please check that first
i have set the height to 200.
Did you set some kind of properties or alignment? Please provide some more details
I have only created some columns with the adapter for the master and also the detail. its important to me that not all columns from the db table are showing.
Can you provide a small test case (tclientdataset)?
Hello,
i have found the cause of this behavior. When i delete the statement gridCustomer.AutoSizeGrid(); in FormShow, then it works fine.
But what is when i want for example to replace columns, i can only access column values by the row col index, so the replaced columns after have a different col index. How to solve this problem, isnt it possible with the datagrid to access the columns by their names?
i mean when a user replaces the columns of the datagrid! After he accesses wrong column values.
You can access the columns via the adapter.
TMSFNCDataGridDatabaseAdapter1.ColumnAtField['MyFieldName'].GridColumn;
oh perfect:
then, are my statements for getting the SelectedDebitor_Nr correct:
colCustomerNo:= adapterCustomer.ColumnAtField['DEBITOR_NR'].GridColumn;
indexCustomerNo:= colCustomerNo.Index;
SelectedDebitor_Nr := self.gridCustomer.Cells[indexCustomerNo, SelectedRow].AsInteger;
Yes, that should be correct. the index will be the index of the column in the collection, but when moving a column that should still be valid, as well as hiding.
Thank you, this is very good!