windowsforms-devexpress-dot-xtragrid-dot-columns-dot-gridcolumn-182614fc.md
Gets the column’s caption.
Namespace : DevExpress.XtraGrid.Columns
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
public override string ToString()
Public Overrides Function ToString As String
| Type | Description |
|---|---|
| String |
A string that specifies the column’s caption.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the ToString() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-grid-forcibly-show-cell-tooltips/CS/AlwaysShowCellHints/Form1.cs#L26
string text = view.GetRowCellDisplayText(info.RowHandle, info.Column);
string cellKey = info.RowHandle.ToString() + " - " + info.Column.ToString();
e.Info = new ToolTipControlInfo(cellKey, text);
winforms-grid-hide-vertical-lines-between-certain-columns/CS/E3647/Form1.cs#L72
foreach (GridColumn column in gridView1.Columns)
checkedListBoxControl1.Items.Add(column, column.ToString(), CheckState.Unchecked, true);
checkedListBoxControl1.Items[0].CheckState = CheckState.Checked;
winforms-grid-forcibly-show-cell-tooltips/VB/AlwaysShowCellHints/Form1.vb#L29
Dim text_Renamed As String = view.GetRowCellDisplayText(info.RowHandle, info.Column)
Dim cellKey As String = info.RowHandle.ToString() & " - " & info.Column.ToString()
e.Info = New ToolTipControlInfo(cellKey, text_Renamed)
winforms-grid-hide-vertical-lines-between-certain-columns/VB/E3647/Form1.vb#L69
For Each column As GridColumn In gridView1.Columns
checkedListBoxControl1.Items.Add(column, column.ToString(), CheckState.Unchecked, True)
Next column
See Also