DataGridViewCellStyle::Format Property
.NET Framework (current version)
Gets or sets the format string applied to the textual content of a DataGridView cell.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The Format property specifies how cell values are formatted as strings. For more information, see Formatting Types in the .NET Framework.
The following code example sets the format of dates in the column named Last Fixed to "Month, year" by setting the Format property on the column's DefaultCellStyle property. This code example is part of a larger example provided for the DataGridViewCellStyle class.
.NET Framework
Available since 2.0
Available since 2.0
Show: