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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Edit Mode vs Display

Thread ID:

Created:

Updated:

Platform:

Replies:

41067 Feb 21,2006 09:47 PM UTC Feb 22,2006 09:43 AM UTC WinForms 1
loading
Tags: GridControl
Steve
Asked On February 21, 2006 09:47 PM UTC

Create a new windows project, place a grid control on the form, and the following code in the load event. this.gridControl1[1, 1].Text = "3*Running Miles*Running Miles*Running Miles*Running Miles*Running Miles*Running Miles*Running Miles*Running Miles*Running Miles"; this.gridControl1.RowHeights[1] = 225; this.gridControl1.ColWidths[1] = 75; Run, and notice that when you switch from edit mode to display mode that the text is rendered differently. Specifically, it appears that the wrap is handled differently in edit mode as opposed to display mode. Thanks, Steve

Administrator [Syncfusion]
Replied On February 22, 2006 09:43 AM UTC

Hi Steve, The grid uses the GDI+ drawing for displaying text in the cells, this causes the difference. Kindly refer to the forum thread in which, Stefan ( a grid architect ) had replied related to this issue. Also refer to this KB article on "Why text appears different when drawn with GDIPlus versus GDI" in the microsoft webiste. Regards, Madhan

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon

;