Cell-Break doesnt work proper


03-09-2010, 1:42 AM
Hi there,
we have the following problem with the grid:
When people size a column to half a leter, the break isnt made proper.

I made a screenshot, you can see in the circle, what I mean. Text is half shown.



Re: Cell-Break doesnt work proper


03-09-2010, 3:55 AM
DrMueller,

This is right behaviour. If you set SharpGrid's WordWrap property to true then you can partially see second line of text in cell if you make it a bit wider. If I misunderstood you, please provide more details about your problem.

Thank you,
Andrey T.

Re: Cell-Break doesnt work proper


03-10-2010, 3:00 AM
Im not sure, if we speak about the same thing:
If I make a cell smaller, it shows a part of the text in the 2. line, thats true.
But the cell becomes automatically larger, that I can read the whole text.

In my example in the red square, you can see, that the text cant be read like this, because the cell didnt grow correctly.

Re: Cell-Break doesnt work proper


03-10-2010, 3:55 AM

DrMueller,

I think I understand what you need. If a user resizes column, you need that cells in this column change their vertical size so you can read the whole cells text. You can use AutoSizeRows method in ColResize event to achieve this functionality:
http://www.datadynamics.com/Help/SharpGrid/methodSGGridAutoSizeRows54.html
http://www.datadynamics.com/Help/SharpGrid/EventSGGridColResize14.html

I've attached a simple sample which demonstrates this. Run it and resize first column.

Thank you,
Andrey T.

Re: Cell-Break doesnt work proper


03-11-2010, 1:53 AM
Well you can see the error I meant at the example:
Resize the column to the last point in the first line, or to the last letter or "Text".
You will see two things:
-The word "Text" is missing, its allready in the 2. line.
-The control is not resizing, its just 1 Lane, but the "Text" is allready in the 2. line.

Re: Cell-Break doesnt work proper


03-11-2010, 3:59 AM

DrMueller,

Thanks for explanation, I can see that resizing column for about a letter width doesn't update cell height. But after resizing a few pixels more cell is updated. Unfortunately, I was not able to find a workaround for this issue and SharpGrid is discontinued product so we won't be able fix it.

Thank you,
Andrey T.