I'm using C# 4.0 and WinForms. I'm trying to get my DataGridView to be setup like this
[CheckBox] [TextColumn] [ComboBoxColumn]
This is for a menu similar to the SQL Server Import/Export tool. The checkbox will tell me whether the table is to be transferred. TextColumn is the source table name. And ComboBoxColumn is a list of the tables in the destination database.
Example
[Transfer] [SourceTable] [DestinationTable]
X MyTableSource MyTableDest
Where MyTableDest would be a list I could choose from like (TableA, TableB, TableC), or I could input my own name.
I tried this.dataGridView.DataSource = myBindingList where mybindingList has my custom object that looks like
public class Mine {
public bool Transfer { get; set;}
public string Source { get; set;}
public List<string> Destination { get; set; }
}
I don't need a full solution - just direction on how to achieve this