RE: DataGridView text wrapping
- From: mikebk <mikebk@xxxxxxxxxxxxxxx>
- Date: Thu, 16 Jul 2009 09:41:01 -0700
Having functionality to wrap text at other than at white space sounds like
really basic functionality. It's basic enough that the Editing control (and
of course the DrawString function) include it. I imagine that most
applications that wrap text wrap when a character exceeds the avaiable width.
At this point, there's no way to tell a dgv to wrap at the end of a line so
it would require some kind of a change to the api. For instance, TextFormat
flags might take a WrapAtWidth flag. This sounds like a simple change but the
api hasn't changed since .Net 2.0.
Likewise, scrolling a dgv so that a specific row is visible is only directly
supported if you want the row positioned at the top of the scrolling region.
I was wanting to position a row that was added at the bottom of scrolling
region and found that I had to iterate through the rows calculating each
row's height to set the FirstVisibleScrollingRowIndex appropriately.
Anyway, these seemed to be the sort of thing that happens when a new set of
classes is introduced and would be remedied in the "next release".
Thanks again.
Mike
"Linda Liu[MSFT]" wrote:
Hi Mike,.
Thank you for your prompt reply!
Does Microsoft ever correct "architectural oversights" like this or theinability to easily scroll a dgv so a specific row is visible but not
necessarily at the top of the visible region?
Could you please tell me what you mean in the above sentence?
Sincerely,
Linda Liu
Microsoft Online Community Support
- Follow-Ups:
- RE: DataGridView text wrapping
- From: Linda Liu[MSFT]
- RE: DataGridView text wrapping
- References:
- RE: DataGridView text wrapping
- From: John Bundy
- RE: DataGridView text wrapping
- From: mikebk
- RE: DataGridView text wrapping
- From: Linda Liu[MSFT]
- RE: DataGridView text wrapping
- From: mikebk
- RE: DataGridView text wrapping
- From: Linda Liu[MSFT]
- RE: DataGridView text wrapping
- From: Linda Liu[MSFT]
- RE: DataGridView text wrapping
- From: mikebk
- RE: DataGridView text wrapping
- From: Linda Liu[MSFT]
- RE: DataGridView text wrapping
- From: mikebk
- RE: DataGridView text wrapping
- From: Linda Liu[MSFT]
- RE: DataGridView text wrapping
- Prev by Date: RE: DataGridView text wrapping
- Next by Date: Problem with ToolStrip-Control an inherited Forms
- Previous by thread: RE: DataGridView text wrapping
- Next by thread: RE: DataGridView text wrapping
- Index(es):
Relevant Pages
|
Loading