DataGridColumnStyle.SetDataGrid(DataGrid) 方法

定义

设置该列所属的 DataGrid 控件。Sets the DataGrid control that this column belongs to.

protected:
 virtual void SetDataGrid(System::Windows::Forms::DataGrid ^ value);
protected virtual void SetDataGrid (System.Windows.Forms.DataGrid value);
abstract member SetDataGrid : System.Windows.Forms.DataGrid -> unit
override this.SetDataGrid : System.Windows.Forms.DataGrid -> unit
Protected Overridable Sub SetDataGrid (value As DataGrid)

参数

value
DataGrid

该列所属的 DataGrid 控件。The DataGrid control that this column belongs to.

注解

通常,应使用 SetDataGridInColumn 方法。Typically, you should use the SetDataGridInColumn method.

适用于

另请参阅