R
Richard Lewis Haggard
Here are the goals:
1) Give the user the means whereby a row's height expands to display the
entire contents of its tallest cell.
2) Give the user the means whereby a row will shrink down to a single line.
3) Give the user the means whereby a row's height can be manually set by
dragging the row header's divider.
I can accomplish either 1 and 2 or 3 but not all 3 at the same time.
The interface for goals 1 and 2 is handled through a column that has a
button in it. When depressed, the code sets the tallest cell's
Style.WrapMode = DataGridViewTriState.True. When released, the WrapMode
state is set to False. This works but only if the DataGridView is set up so
that row height drag is disabled. If row height drag is enabled then the
WrapMode appears to have no effect.
Would someone be so kind as to enlighten this rather confused programmer 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
General: www.Haggard-And-Associates.com
Two fish are in a tank. One says to the other, "Are you absolutely position
that you know how to drive this thing?"
Please come visit here for a couple thousand good giggles!:
www.haggard-and-associates.com/Humor/humor.htm
1) Give the user the means whereby a row's height expands to display the
entire contents of its tallest cell.
2) Give the user the means whereby a row will shrink down to a single line.
3) Give the user the means whereby a row's height can be manually set by
dragging the row header's divider.
I can accomplish either 1 and 2 or 3 but not all 3 at the same time.
The interface for goals 1 and 2 is handled through a column that has a
button in it. When depressed, the code sets the tallest cell's
Style.WrapMode = DataGridViewTriState.True. When released, the WrapMode
state is set to False. This works but only if the DataGridView is set up so
that row height drag is disabled. If row height drag is enabled then the
WrapMode appears to have no effect.
Would someone be so kind as to enlighten this rather confused programmer 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
General: www.Haggard-And-Associates.com
Two fish are in a tank. One says to the other, "Are you absolutely position
that you know how to drive this thing?"
Please come visit here for a couple thousand good giggles!:
www.haggard-and-associates.com/Humor/humor.htm