Hi!
I need to know if it's possible (and how) to define via AppStylist the column alignment (by datatype maybe?) inside the Wingrids across my appl... Trying to do this, I only achieved to align the columns at wingrid level, not column level...
TIA!!
Daniel
Hi Daniel,
I'm afraid I don't understand what you mean by "column alignment".
There's no way to align the columns within the grid, they always appears left to right.
If you mean the text within the cells, then this should be easy enough to do on the UltraGridCell UIRole.
Not sure what you mean by "at the WinGrid level", though.
Yes, i wasn´t clear enough, and yes, what i need it´s to know how to align the text inside the cells (int -> right, string ->left, date -> centered, etc...)... I´ll be looking at the UltraGrid Cell UIRole as you said...
Regards,
AppStylist won't be able to do this based on DataType. It will only allow to align the text in all cells of the grid the same.
The grid will automatically default to aligning the text left or right based on the data type, though. If you do not like the defaults the grid is using, you would have to adjust the alignment using the column's CellAppearance.TextHAlign property in code.