RE: DataGridView text wrapping



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 the
inability 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


.



Relevant Pages

  • Re: Cannot change Scrollbars property - how to change Wrap?
    ... >multi-line textbox control. ... >the Wrap Text functionality. ... >If you cannot change the Scrollbars property, ... >enable & disable Text Wrap at runtime? ...
    (microsoft.public.vb.general.discussion)
  • Re: HEADS UP! 6.0-RELEASE coming
    ... >> stability and functionality of the system, ... >> and really eager to wrap it up and get it out to everyone. ...
    (freebsd-current)
  • Re: HEADS UP! 6.0-RELEASE coming
    ... >> stability and functionality of the system, ... >> and really eager to wrap it up and get it out to everyone. ...
    (freebsd-stable)
  • Re: Altering screen appearance of Text Edit
    ... Umm, yeah, I was a bit confused about "Wrap to Window" versus "Wrap to ... It's perverse, IMO. ... hard to use, scrolling a necessity. ...
    (comp.sys.mac.apps)
  • Re: Settings and resources
    ... Juval Lowy wrote a wrapper in C# to access most of this functionality. ... Dan Fernandez blogs about it here (watch for line wrap): ...
    (microsoft.public.dotnet.languages.csharp)

Loading