DataGridCheckBoxColumn.GenerateEditingElement(DataGridCell, Object) 方法

定義

取得繫結至資料行之 CheckBox 屬性值的 Binding 控制項。

protected:
 override System::Windows::FrameworkElement ^ GenerateEditingElement(System::Windows::Controls::DataGridCell ^ cell, System::Object ^ dataItem);
protected override System.Windows.FrameworkElement GenerateEditingElement (System.Windows.Controls.DataGridCell cell, object dataItem);
override this.GenerateEditingElement : System.Windows.Controls.DataGridCell * obj -> System.Windows.FrameworkElement
Protected Overrides Function GenerateEditingElement (cell As DataGridCell, dataItem As Object) As FrameworkElement

參數

cell
DataGridCell

將會包含已產生之項目的儲存格。

dataItem
Object

由資料列 (內含所要的儲存格) 表示的資料項目。

傳回

FrameworkElement

繫結至資料行之 Binding 屬性值的新核取方塊控制項。

適用於