DataGridViewCell.ToString Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns a string that describes the current object.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public override string ToString()

Return Value

Type: System.String

A string that represents the current object.

Unless otherwise noted, the ToString method for all the various cell types will return a string of the form shown in the following code example:

Classname {RowIndex = #, ColumnIndex = #}

.NET Framework
Available since 2.0
Return to top