Datagrid column and textwrapping

  • Thread starter Thread starter scorpion53061
  • Start date Start date
S

scorpion53061

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)
 
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.
 
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.
 
Back
Top