PC Review


Reply
Thread Tools Rate Thread

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

 
 
Greg
Guest
Posts: n/a
 
      21st Jun 2006
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.

 
Reply With Quote
 
 
 
 
Greg
Guest
Posts: n/a
 
      22nd Jun 2006
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.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make a cell appear in upper left (top left) corner of works =?Utf-8?B?amVmZg==?= Microsoft Excel Programming 2 6th Mar 2007 10:14 PM
Datagrid right to left behaviour of cells only works when a cell has the focus Greg Microsoft Dot NET Framework 0 21st Jun 2006 04:07 PM
Datagrid right to left behaviour of cells only works when a cell has the focus Greg Microsoft Dot NET Framework 0 21st Jun 2006 04:07 PM
Set focus to DAtagrid Cell =?Utf-8?B?cnJvY2E=?= Microsoft ASP .NET 1 10th Nov 2004 08:37 AM
Datagrid cell focus Nanda Microsoft C# .NET 2 31st Jul 2003 12:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:06 AM.