PC Review


Reply
Thread Tools Rate Thread

Datagrid column and textwrapping

 
 
scorpion53061
Guest
Posts: n/a
 
      7th Oct 2003
I have a custom data grid cell where I need the text to wrap inside the
cell.

It does not seem the cell however no matter how much I beg and plead will do
this.

Does anyone have an ideas?

Dim ITEMDESC As New DataGridTextBoxColumn
ITEMDESC.MappingName = "ITEMDESC"
ITEMDESC.HeaderText = "DESC"
ITEMDESC.Width = 200
ITEMDESC.TextBox.Multiline = True
ITEMDESC.TextBox.WordWrap = True (does not seem to work)


 
Reply With Quote
 
 
 
 
Bharat Patel [MSFT]
Guest
Posts: n/a
 
      8th Oct 2003
Hi,

Datagrid does not support word wrapping even if you use TextBoxColumn Style.
The textbox is there only when you are editing a cell in that column after that
the grid is just painted cells.

You may need to look for a third party grid control. I am sorry but I have
researched this issue and I know this is something you may not be able to do.
Even painting each cell yourself will not work as there is no way to change the
rowHeight dynamically for individual rows.

Hope this helps!
Bharat Patel
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.

 
Reply With Quote
 
scorpion53061
Guest
Posts: n/a
 
      9th Oct 2003
Well I gave it the old college try.......

I can safely tell my boss it can't be done. At least not without paying for
it........

I will just on the click event load the record into controls on the form
(textboxes etc). Not elegant but it will work.

"Bharat Patel [MSFT]" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> Hi,
>
> Datagrid does not support word wrapping even if you use TextBoxColumn

Style.
> The textbox is there only when you are editing a cell in that column after

that
> the grid is just painted cells.
>
> You may need to look for a third party grid control. I am sorry but I have
> researched this issue and I know this is something you may not be able to

do.
> Even painting each cell yourself will not work as there is no way to

change the
> rowHeight dynamically for individual rows.
>
> Hope this helps!
> Bharat Patel
> Microsoft, Visual Basic .NET
>
> This posting is provided "AS IS" with no warranties, and confers no

rights.
> Please reply to newsgroups only. Thanks.
>



 
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
TextWrapping options Victor Microsoft Word Document Management 3 14th Apr 2008 08:31 PM
bind a dropdown in a column in a datagrid based on the dropdown value selected in another column of the datagrid. vishnu Microsoft ASP .NET 1 25th Mar 2006 01:24 PM
RE: Datagrid: how cut short display of a long description in a datagrid column =?Utf-8?B?U3VyZXNo?= Microsoft ASP .NET 0 2nd Mar 2004 08:31 PM
Need Help Determining DataGrid Column Selected for Sort using IBindingList - Datagrid.zip (0/1) David Elliott Microsoft Dot NET Framework Forms 1 18th Jul 2003 02:22 AM
Need Help Determining DataGrid Column Selected for Sort using IBindingList - Datagrid.zip (0/1) David Elliott Microsoft Dot NET Framework Forms 0 18th Jul 2003 02:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:57 AM.