Skip to content

SyncfusionExamples/How-to-achieve-Excel-like-text-alignment-in-WinForms-GridControl

Repository files navigation

How to achieve Excel like text alignment in WinForms GridControl?

By default, text alignment in WinForms GridControl is right-aligned for both alphabetic and numeric values. To achieve Excel-like alignment, use the ExcelLikeAlignment property. With this setting, string values are aligned to the left and numeric values are aligned to the right within each cell, matching Excel’s default behavior.

C#

this.gridControl1.ExcelLikeAlignment = true;

VB

Me.GridControl1.ExcelLikeAlignment = True

Showing text alignment in GridControl

Take a moment to peruse the WinForms GridControl Microsoft Excel Like Features, where you can find about excel like features with code examples.

Requirements

  • .NET Framework 4.6 or later
  • Windows Forms application
  • Syncfusion Windows Forms Suite (GridControl component)
  • Visual Studio 2015 or later

Support and Resources

For more information on Syncfusion GridControl, visit Syncfusion Documentation.

About

This demo shows how to achieve excel-like text alignment in WinForms GridControl.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors