Here is my code:
class SelectionTableEntry
{
public CheckBox cbIsChecked { get; set; }
public Table Table { get; set; }
public string TableName { get; set; }
public Button btnEditFilter { get; set; }
public SelectionTableEntry(Table table, bool IsChecked)
{
this.Table = table;
this.TableName = table.Name;
this.cbIsChecked = new CheckBox();
this.cbIsChecked.Checked = IsChecked;
this.btnEditFilter = new Button();
this.btnEditFilter.Text = "Open";
}
}
List<SelectionTableEntry> myList = new List<SelectionTableEntry>();
// after filling the list with items
myDataGridView.DataSource = myList;
Now I wanted to use a List with the type of SelectionTableEntry as a DataSource for my DataGridView. The problem is, that the CheckBox and the Button are not displayed, so the field is empty.
How can I solve the problem? Thanks in advance.
Regards, Chris