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. Image for the cookie policy date
close icon

Edit Mode vs Display

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

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon