Declined
Last Updated: 26 Aug 2024 17:09 by ADMIN
fabrizio
Created on: 19 Aug 2024 09:18
Category: UI for WinForms
Type: Bug Report
0
new merge radgridview

Hi, the new feauture Merge Cells is very nice but the alignment is only at the center.

Can I align the merged cells in the same mode of the column?

Thanks, Fabrizio

2 comments
ADMIN
Dinko | Tech Support Engineer
Posted on: 26 Aug 2024 17:09

Hi,

The feedback item will be closed as the required behavior can be achieved using custom code.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

ADMIN
Dinko | Tech Support Engineer
Posted on: 19 Aug 2024 13:04

Hello fabrizio,

Thank you for your interest in one of RadGridView's newest functionalities.

By default, the merge cell text is positioned at the center. If you want to change the position of the text, you can subscribe to the ViewCellFormatting event. In the event handler, you can check the incoming cell type for GridMergeCellElement and change the TextAlignment property to the desired value.

private void RadGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    if (e.CellElement is GridMergeCellElement mergeCell)
    {
        mergeCell.TextAlignment = ContentAlignment.MiddleLeft;
    }
}

I hope that this information is helpful.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.