Hi
I'm using a winforms sfDatagrid where I have merged some cells using QueryCoveredRange. I have also set text position for a cell using QueryCellStyle like below and all columns have AllowTextWrapping = true
private static void _sfdg_QueryCellStyle(object sender, Syncfusion.WinForms.DataGrid.Events.QueryCellStyleEventArgs e)
{
if (e.RowIndex == 4 || e.RowIndex == 6)
{
e.Style.HorizontalAlignment = HorizontalAlignment.Left;
e.Style.VerticalAlignment = VerticalAlignment.Top;
}
else
{
e.Style.HorizontalAlignment = HorizontalAlignment.Center;
e.Style.VerticalAlignment = VerticalAlignment.Center;
}
}
There are two things that I would like to get working.
1. When I start editing a cell where the text is centered, the text jumps to top left. Is it possible to have the text centered when it's edited?
2. When I edit a cell where the text is wrapped, the text is no longer wrapped in edit mode. Is it possible to keep the text wrapped in edit mode?
I have looked at CurrentCellBeginEdit but I have not been able to get it working.
Regards
Øyvind Knappskog Olsen