Change Height of Column Header in DataGrid
Posted: Sun Oct 16, 2016 6:46 pm
I made basic use of a DataGrid in my recent project. It worked fine, but when I run the app on Android the Column Header Name text is too tall for the Column Header and this caused the bottom of the Column Header name to get cut off.
I was able to easily change the row height in the DataGrid to 25px, but changing the Column Header height is proving more difficult.
I see in the documentation there is a dgProperty called Header Height. I tried adding to the DataGrid script, but it didn't work.
I found this in the documentation, but I'm not quite sure what it means:
default header behavior
- The table style has an internal behavior that is used for column headers. If you would like to override the default behavior for column headers you can set this property to point to a button with your own behavior script.
To see the script that the data grid uses by default you can edit the script of button "Default Header" of group "Behaviors" of stack "revDataGridLibrary"
Thanks in advance for any help or suggestions,
TJ.
I was able to easily change the row height in the DataGrid to 25px, but changing the Column Header height is proving more difficult.
I see in the documentation there is a dgProperty called Header Height. I tried adding
Code: Select all
set the dgProp[ Header Height ] of group "Data Grid" to 25
I found this in the documentation, but I'm not quite sure what it means:
default header behavior
- The table style has an internal behavior that is used for column headers. If you would like to override the default behavior for column headers you can set this property to point to a button with your own behavior script.
To see the script that the data grid uses by default you can edit the script of button "Default Header" of group "Behaviors" of stack "revDataGridLibrary"
Thanks in advance for any help or suggestions,
TJ.