G
Guest
Hi,
I have been trying to see if I can do the following:
1. Create a DataGridView
2. Create 2 columns in the DataGridView (1 textbox and the other combobox)
3. Create a DataTable containing my data. (AutoGenerateColumns is true).
The data is 2 columns of System.String cell.
4. If I assign the DataTable to DataGridView.DataSource, I get 4 columns. 2
column
from (2) and 2 columns from (3).
I am not certain is there a way to use DataTable in (3) to populate the 2
columns I created in (2). E.g. through proper column naming or other technic.
Any help is appreciated.
I have been trying to see if I can do the following:
1. Create a DataGridView
2. Create 2 columns in the DataGridView (1 textbox and the other combobox)
3. Create a DataTable containing my data. (AutoGenerateColumns is true).
The data is 2 columns of System.String cell.
4. If I assign the DataTable to DataGridView.DataSource, I get 4 columns. 2
column
from (2) and 2 columns from (3).
I am not certain is there a way to use DataTable in (3) to populate the 2
columns I created in (2). E.g. through proper column naming or other technic.
Any help is appreciated.