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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top