Prev: xy scatter plot
Next: Microphone
From: Phil Hunt on 21 Apr 2010 12:49 Does anyone know how to avoid a column from truncation. I know that you can resize the col, but how does the program know it is being truncated. Plesae note I am not talking about wordwrap here. Thanks
From: Jeff Johnson on 21 Apr 2010 13:30 "Phil Hunt" <aaa(a)aaa.com> wrote in message news:OfDyrKX4KHA.3644(a)TK2MSFTNGP06.phx.gbl... > Does anyone know how to avoid a column from truncation. > I know that you can resize the col, but how does the program know it is > being truncated. Plesae note I am not talking about wordwrap here. What do you mean by truncation? VISUAL truncation? Or actual loss of data?
From: Phil Hunt on 21 Apr 2010 13:33 Visual, of course. "Jeff Johnson" <i.get(a)enough.spam> wrote in message news:%2304WShX4KHA.4336(a)TK2MSFTNGP04.phx.gbl... > "Phil Hunt" <aaa(a)aaa.com> wrote in message > news:OfDyrKX4KHA.3644(a)TK2MSFTNGP06.phx.gbl... > >> Does anyone know how to avoid a column from truncation. >> I know that you can resize the col, but how does the program know it is >> being truncated. Plesae note I am not talking about wordwrap here. > > What do you mean by truncation? VISUAL truncation? Or actual loss of data? > >
From: Helmut Meukel on 21 Apr 2010 13:33 "Phil Hunt" <aaa(a)aaa.com> schrieb im Newsbeitrag news:OfDyrKX4KHA.3644(a)TK2MSFTNGP06.phx.gbl... > Does anyone know how to avoid a column from truncation. > I know that you can resize the col, but how does the program know it is being > truncated. Plesae note I am not talking about wordwrap here. > > Thanks > TextWidth? AFAIK, FlexGrid can't automatically adjust its column width to the widest cell value. Your code has to iterate through all cell values. Helmut.
From: Nobody on 21 Apr 2010 14:46
Some 3rd party grid controls show ellipses(...) when the text is too wide to fit in a column. True DBGrid is one of them: http://www.componentone.com/SuperProducts/TrueDBGridPro/ Doing it on your own requires a lot of coding and subclassing, but the API function to use to show ellipses is DrawText() function with DT_END_ELLIPSIS or DT_WORD_ELLIPSIS constants. |