ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2015-11-25 20:21:34

Prakash
Member
Registered: 2015-11-25
Posts: 3

Text Wrap not working

hi
i am using reogrid in my c++/cli project. everything is working well, so far so good!
but i am stuck at TextWrap option.. it doesn't seem to work.  any clue?

WorksheetRangeStyle ^style = gcnew WorksheetRangeStyle();
style->TextWrapMode = TextWrapMode::BreakAll;
reoGridControl1->CurrentWorksheet->SetRangeStyles("A1:D15", style);

above lines makes no effect.
i am using ReoGrid 0.9.2


in the documentation, example is in c#

Thanks

Offline

#2 2015-11-26 00:07:04

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Text Wrap not working

Hi, I think you also have to set the style flag:

style->Flag |= PlainStyleFlag::TextWrap;

Offline

#3 2015-11-26 11:31:40

Prakash
Member
Registered: 2015-11-25
Posts: 3

Re: Text Wrap not working

Thanks
adding below line worked

style->Flag = PlainStyleFlag::TextWrap;

warm regards,
-Prakash

Offline

Board footer

Powered by FluxBB