Datagrid right to left behaviour of cells only works when a cell has the focus

  • Thread starter Thread starter Greg
  • Start date Start date
G

Greg

When a datagrids RightToLeft property is set to true, as expected, it
right aligns the caption text, and reverses the order of the columns.
When typing text into a cell, the text is right aligned. However, when
a cell loses focus, the cell's alignment returns to left aligned.

Is this normal, or is this some unexpected aberration due to some
overriding of the grid I am doing elsewhere?

Is there an easy way to correct this behaviour?

Any comments would be very gratefully received.

Greg.
 
Found the answer.....I was using the graphics object's drawstring
method. You just need to send it a string format with the
StringFormatFlags.DirectionRightToLeft property set to yes.
 
Back
Top