SharpGrid Support

Started by DrMueller at 03-09-2010 1:42 AM. Topic has 5 replies.

Print Search Rate
Sort Posts:    
   03-09-2010, 1:42 AM
DrMueller is not online. Last active: 10/24/2011 2:31:43 PM DrMueller

Top 100 Posts
Joined on 10-05-2006
Posts 85
Cell-Break doesnt work proper

Attachment: grid.pdf
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.




   Report 
   03-09-2010, 3:55 AM
Andrey - DD is not online. Last active: 8/25/2011 5:42:49 PM Andrey - DD

Top 25 Posts
Joined on 08-01-2007
Russia, Novosibirsk
Posts 671

DDStaff
Re: Cell-Break doesnt work proper
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.

   Report 
   03-10-2010, 3:00 AM
DrMueller is not online. Last active: 10/24/2011 2:31:43 PM DrMueller

Top 100 Posts
Joined on 10-05-2006
Posts 85
Re: Cell-Break doesnt work proper
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.

   Report 
   03-10-2010, 3:55 AM
Andrey - DD is not online. Last active: 8/25/2011 5:42:49 PM Andrey - DD

Top 25 Posts
Joined on 08-01-2007
Russia, Novosibirsk
Posts 671

DDStaff
Re: Cell-Break doesnt work proper

Attachment: sgWordWrapLongUpd.zip

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.


   Report 
   03-11-2010, 1:53 AM
DrMueller is not online. Last active: 10/24/2011 2:31:43 PM DrMueller

Top 100 Posts
Joined on 10-05-2006
Posts 85
Re: Cell-Break doesnt work proper
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.

   Report 
   03-11-2010, 3:59 AM
Andrey - DD is not online. Last active: 8/25/2011 5:42:49 PM Andrey - DD

Top 25 Posts
Joined on 08-01-2007
Russia, Novosibirsk
Posts 671

DDStaff
Re: Cell-Break doesnt work proper

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.


   Report 
GrapeCity » Product Support » SharpGrid Suppo... » Cell-Break doesnt work proper

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.