We are experiencing the following situation. Text inside grid shrink on enter edit mode and expands on exit edit mode. This is totally unacceptable! Have you ever seen any other professional product (even on the market) working like ultragrid does. Infragistics People and developer must realize that no professional product can behave this way. If there is any workout for fixing the problem please infragistic people document id. We are strongly working on our products and our customers dont want shipping around text that acts as chewing gum.
Thank you.
First of all i disagree with you on the fact that other product provider have the same problem. The reason is probably is because they manage editing features directly into the grid or editors withou using text boxes as helpers. Apology, but i have to complain. If you put DrawUtility.UseGDIPlusTextRendering = False the situation is scary. Text over the ribbon flicker expands in a sort of boldface mode on mouse over and not only that, text is not rendered in device independent mode, no font aliasing. It is not possible to use the approach you suggested. I think that infragistics need to fix this problem, for example by implementing a new text editor (GDI+ capable) to be used on edit mode. I really dont understand how infragistic believe this behaviour acceptable. We are serously thinking on switching our implementations over different product provider more sensitive on these aestetic aspects.
My guess is that what you are seeing is the result of the different drawing between GDI and GDI+. This is not specific to the UltraGrid, it is a result of the fact that Microsoft changes the way text is drawn in GDI+. When the grid draws a cell, it uses GDI+, the default for DotNet applications. When the cell goes into edit mode, it uses a Windows TextBox, which draws text in GDI, this the change in the text drawing.
If you want to demonstrate this, place an inbox TextBox control and a Label on a form and apply the same text. The Label draws with GDI+, but the TextBox uses GDI.
If you want to avoid this, then you will need to use GDI throughout your application and avoid using GDI+ for controls that are editable. To control this on the Infragistics controls, there is a property on each control called TextRenderingMode. You can also set the default for all Infragistics controls in your application using:
DrawUtility.UseGDIPlusTextRendering = true;