Home All Groups Group Topic Archive Search About
Author
2 Feb 2005 9:14 AM
Olivier Matrot
Hello,
I would like to ensure that Datagrid columns size are fixed. I understand
that this could sound surprising. Is there a way to automatically truncate
text (which comes from a database) if it does not fit in the column, but
could be totaly visible with the help of the popup property ?

Author
2 Feb 2005 9:20 AM
Olivier Matrot
Never Mind,
Found the 'Wrap Text Within Cell' otpion in property builder !!

Show quoteHide quote
"Olivier Matrot" <olivier.matrot@online.nospam> wrote in message
news:emAFKeQCFHA.208@TK2MSFTNGP12.phx.gbl...
> Hello,
> I would like to ensure that Datagrid columns size are fixed. I understand
> that this could sound surprising. Is there a way to automatically truncate
> text (which comes from a database) if it does not fit in the column, but
> could be totaly visible with the help of the popup property ?
>
>
Author
2 Feb 2005 1:31 PM
Olivier Matrot
Oups not so fast.
'Wrap text within cell' is not the solution. It ensure that only one line is
used.


Show quoteHide quote
"Olivier Matrot" <olivier.matrot@online.nospam> wrote in message
news:u9DqxhQCFHA.1396@TK2MSFTNGP14.phx.gbl...
> Never Mind,
> Found the 'Wrap Text Within Cell' otpion in property builder !!
>
> "Olivier Matrot" <olivier.matrot@online.nospam> wrote in message
> news:emAFKeQCFHA.208@TK2MSFTNGP12.phx.gbl...
>> Hello,
>> I would like to ensure that Datagrid columns size are fixed. I understand
>> that this could sound surprising. Is there a way to automatically
>> truncate text (which comes from a database) if it does not fit in the
>> column, but could be totaly visible with the help of the popup property ?
>>
>>
>
>
Author
2 Feb 2005 2:24 PM
Eliyahu Goldin
In ItemDataBound event you have access to all cells. Check the cell you want
to truncate. You can assign full text to the cell's ToolTip property and
after this truncate the Text property.

Eliyahu

Show quoteHide quote
"Olivier Matrot" <olivier.matrot@online.nospam> wrote in message
news:emAFKeQCFHA.208@TK2MSFTNGP12.phx.gbl...
> Hello,
> I would like to ensure that Datagrid columns size are fixed. I understand
> that this could sound surprising. Is there a way to automatically truncate
> text (which comes from a database) if it does not fit in the column, but
> could be totaly visible with the help of the popup property ?
>
>