Paul McNett wrote:
> Kelie wrote:
>> Ed Leafe <[EMAIL PROTECTED]> writes:
>>>     A simpler approach might be to set the WordWrap property for the  
>>> columns in the grid. This will set the renderer (not just the editor,  
>>> which is what you tried) to wrap the text. Try something like this:
>>>
>>> for col in grd.Columns:
>>>     col.WordWrap = True
>> Thanks Ed. WordWrap didn't do the trick. I'm wondering if that has anything 
>> to
>> do the newline character. I used "\n" for the newline in the database. So 
>> for a
>> cell that has "line1\nline2\nline3", also "line1" is displayed in grid. 
>> should i
>> be using "\r" or "\r\n"? btw, i'm on winxp.
> 
> I noticed that WordWrap isn't working on Windows, too, last week, btw. 
> However, have you tried resizing the row height? Perhaps it is working, 
> only you aren't resizing the rowheight to show the wrapped contents?
> 

I am wondering what is actually in the db.  if "\n" is 2 chars not a newline...

Carl K


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to