Unplanned
Last Updated: 13 Aug 2026 09:41 by ADMIN
Dan
Created on: 13 Aug 2026 09:26
Category: GridView
Type: Bug Report
0
RadGridView: In the ControlDefault theme, editor cell text is misaligned while editing a cell

In the ControlDefault theme, editor cell text is misaligned while editing a cell.

1 comment
ADMIN
Dinko | Tech Support Engineer
Posted on: 13 Aug 2026 09:41

Hi Dan,

Thank you for reporting this. To workaround this behavior, we will need to modify the theme programmatically. The following code demonstrates how we can do that and remove the additional settings that offset the cell editor text.

public Form1()
{
    this.ModifyTheme();
    InitializeComponent();
    this.radGridView1.DataSource = CreateSampleDataTable();
}

private void ModifyTheme()
{
    Theme controlDefaultTheme = ThemeRepository.FindTheme("ControlDefault");
    StyleGroup group = controlDefaultTheme.FindStyleGroup("Telerik.WinControls.UI.RadGridView");
    var groupsToRemove = group.PropertySettingGroups.Where(g =>  
                                                        g.Selector.Value == "RadPromptInputElement" ||
                                                        g.Selector.Value == "RadTextBoxElement" || 
                                                        g.Selector.Value == "PromptInputSpeechToTextButton").ToList();
    while (groupsToRemove.Count > 0)
    {
        group.PropertySettingGroups.Remove(groupsToRemove[0]);
        groupsToRemove.RemoveAt(0);
    }
}

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Modernizing a WinForms application? Use the AI-powered WinForms Converter to simplify migration to Telerik UI for WinForms.