views:

238

answers:

0

Hello i put TextBox Column into WPF grid like this:

    DevExpress.Wpf.Grid.GridColumn col = new GridColumn();
    col.FieldName = dr["FieldName"].ToString();
    col.Header = dr["Caption"].ToString();

    //Gets or sets the name of the column
    col.Name = "c"+ dr["FieldID"].ToString();

    if (notGenerateColumns != null && notGenerateColumns.Contains(dr["FieldName"].ToString()))
    {
        col.ReadOnly = false;

    }
    else
    {
        col.ReadOnly = true;
    }

    Grid.Columns.Add(col);

Does anyone knows how to add a CheckBox to this WPF grid (CheckBox Components into cells of some Column) Thanks.