Re: Wordwrap



JoeGrownup@xxxxxxxxxxxxxx's wild thoughts were released on
Mon, 24 Apr 2006 09:30:26 -0500 bearing the following fruit:

On Mon, 24 Apr 2006 14:56:52 +0100, Jan Hyde
<StellaDrinker@xxxxxxxxxxxxxxxxxxx> wrote:

JoeGrownup@xxxxxxxxxxxxxx's wild thoughts were released on
Mon, 24 Apr 2006 08:27:31 -0500 bearing the following fruit:

I have a VB6 app which uses M$ Jet, ADO, and MSHFlexgrid. The DB has
two fields with about 60 string characters. I want to wordwrap the
flexgrid. Have to use the hidden textbox to adjust the row height on
the flexgrid. That is not a big deal. The problem is where do I put
the code for the height adjustment? I just looked through the Events
of the MSHFlexgrid and the ADO, and I see no real place for the code.
I want the flexgrid row height to be adjusted automatically when the
data comes off the database.

Any ideas?

The same place your using 'the hidden textbox'?

I'm guessing your binding the control to some datasource? If
so then that's part of the problem with databinding, it does
it 'all' for you, taking the control away from you.

The ADO is bound to the Jet DB and I have the flexgrid bound to the
ADO. I see no way to adjust the row height of the flexgrid
automatically as the data is being loaded from the DB. Got any ideas?

Like I said this is the problem with using databinding. I
guess you have no other option but to loop through the grid
once it's populated, in which case you might as well have
used a recordset and populated the grid yourself.

J

Jan Hyde (VB MVP)

--
Rich foods are like destiny. They, too, shape our ends. (Art. Moger)

.



Relevant Pages

  • Re: Wordwrap
    ... If the text in a cell is too long to display in the cell, and the WordWrap ... Have to use the hidden textbox to adjust the row height on ... the flexgrid. ...
    (comp.lang.basic.visual.misc)
  • Re: Wordwrap
    ... If the text in a cell is too long to display in the cell, and the WordWrap ... Have to use the hidden textbox to adjust the row height on ... the flexgrid. ...
    (comp.lang.basic.visual.misc)
  • Re: Wordwrap
    ... Have to use the hidden textbox to adjust the row height on ... the flexgrid. ... I'm guessing your binding the control to some datasource? ...
    (comp.lang.basic.visual.misc)
  • Re: Wordwrap
    ... Have to use the hidden textbox to adjust the row height on ... the flexgrid. ...
    (comp.lang.basic.visual.misc)
  • Re: Wordwrap
    ... the flexgrid. ... of the MSHFlexgrid and the ADO, and I see no real place for the code. ... Like I said this is the problem with using databinding. ... used a recordset and populated the grid yourself. ...
    (comp.lang.basic.visual.misc)

Loading