|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
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 ? 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 ? > > 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 ? >> >> > > 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 ? > > |
|||||||||||||||||||||||