The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I am able to vertically center cells using :
styleInfo.VerticalAlignment = GridVerticalAlignment.Middle;
However, as soon as the cell goes into edit mode, vertical alignment reverts to top aligned, which looks a bit stange as the cells are quite tall, so the text jumps up to a different location.
Is there a way to enforce vertical cell centering even when in edit mode?
Alex.
ADAdministrator Syncfusion Team February 14, 2005 10:27 AM UTC
There are no property setting to do this for you automatically.
You can try setting the style.TextMargins.Top property for the cell to some appropriate value. This should move the top of the TextBox away from the top border.
ADAlex DrizenFebruary 14, 2005 04:14 PM UTC
Not an ideal workaround - but works fine for my needs.
Thanks for the quick response!
Alex.
>There are no property setting to do this for you automatically.
>
>You can try setting the style.TextMargins.Top property for the cell to some appropriate value. This should move the top of the TextBox away from the top border.