Probably you need to disable manual drag before setting 1 and 2. Then you
resize and enable manual resizing again.
HTH
Yeah, tried that first thing. There were problems. More information:
The app starts with the DateGridView in AutoSizeRowsMode =
DataGridViewAutoSizeRowsMode.None. This allows manual resize.
During expand/contract operation, the mode is changed to
DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders and then the cell's
WrapMode is set to True or False, depending. Upon completion, the grid goes
back to AutoSizeRowsMode of None.
There are problems with this. First of all, if the grid isn't forced to
immediately refresh, it ignores the row height changes. Even if it does the
refresh, the row height first expands and then contracts again.
Maybe I should try something slightly different - What are the sequence of
operations that the grid goes through to determine how tall the row has to
be? Since that works automatically, maybe I should just duplicate that
functionality and leave the system in a state fit for manual resize. I could
easily figure out the text extents for a normal text cell but that's not
what I'm using. I have created a RichTextBox column and this is the one that
can be the multi-line height. How do I figure out how tall a RichTextBox
cell needs?

Signature
Richard Lewis Haggard
General: www.Haggard-And-Associates.com
Please come visit here for a couple thousand good giggles!:
www.haggard-and-associates.com/Humor/humor.htm
> Probably you need to disable manual drag before setting 1 and 2. Then you
> resize and enable manual resizing again.
[quoted text clipped - 21 lines]
>> as to which bits, flags and attributes must be set to what state in order
>> for the DataGridView to respond in the desired fashion? Thanks.
Richard Lewis Haggard - 25 Jun 2007 19:45 GMT
I solved the problem of figuring out how tall a row must be to display the
entire contents of a RichText cell by creating a method that, when supplied
with a width, can calculate the height required to display RichTextBox's
contents. The single line contracted mode is satisfied by saving the height
of the new row when the form is first loaded. Thanks anyway, guys.

Signature
Richard Lewis Haggard
General: www.Haggard-And-Associates.com
911, what's the nature of your emergency?
"Oh my god! Please help! I accidentally shot my friend! It's really bad! I
think he may be dead!"
"Calm down, sir. This is important. Are you sure he's dead?"
The caller puts the phone down. After a moment, the 911 operator hears a
loud Bang
The caller returns. "OK, now what?"
Please come visit here for a couple thousand good giggles!:
www.haggard-and-associates.com/Humor/humor.htm
> Yeah, tried that first thing. There were problems. More information:
>
[quoted text clipped - 43 lines]
>>> as to which bits, flags and attributes must be set to what state in
>>> order for the DataGridView to respond in the desired fashion? Thanks.