Articles in this section

How to display a cell values in UpperCase in WinForms DataGrid (SfDataGrid)?

WinForms DataGrid (SfDataGrid) allows you to display the record data in upper case for a specific column by using SfDataGrid.DrawCell event

public Form1()
{
    InitializeComponent();
 
    this.sfDataGrid1.DrawCell += OnSfDataGrid1_DrawCell;
}
 
private void OnSfDataGrid1_DrawCell(object sender, Syncfusion.WinForms.DataGrid.Events.DrawCellEventArgs e)
{
    if(e.Column.MappingName == "ProductName")
    {
        e.DisplayText = e.DisplayText.ToUpper();
    }
}

 

UpperCase column

Take a moment to peruse the documentation, where you can find about conditional styling in SfDataGrid, with code examples.

You can download the example from GitHub

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied