We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Text Size Change On Edit

Thread ID:

Created:

Updated:

Platform:

Replies:

61663 May 30,2007 12:46 PM May 30,2007 07:55 PM Windows Forms 3
loading
Tags: GridControl
Dave Daniels
Asked On May 30, 2007 12:46 PM

Hello,

I have set an Essential Grid to allow edits and resize the row to fit. When I click on the cell to edit the text, the size of the text shrinks. Once I finish editing the cell and click out, it goes back to normal size and gets cut off.

Any ideas?

haneefm [Syncfusion]
Replied On May 30, 2007 01:47 PM

Hi DVD,

Please try to provide us some more information on this issue. I tried to reproduce the issue, but couldn't. kindly provide us a minimal sample to reproduce the issue or modify any of our browser sample accordingly. This will help us to analyse the issue further.

Best regards,
Haneef

Dave Daniels
Replied On May 30, 2007 04:47 PM

See attachment and video enclosed.

Thanks for your help.

TestGridApp1.zip

haneefm [Syncfusion]
Replied On May 30, 2007 07:55 PM

Hi DVD,

This can be resolved by handling the DrawCellDisplayText event and call the DrawText method to draw the text in a grid cell. Here is a code snippet

private void gridControl1_DrawCellDisplayText(object sender, GridDrawCellDisplayTextEventArgs e)
{
e.Cancel = GridGdiPaint.Instance.DrawText(e.Graphics, e.DisplayText, e.TextRectangle, e.Style,e.ClipBounds, false);
}

Best regards,
Haneef

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;