Bind Data to DataGrid with existing columns in Windows Forms
I am trying to bind Data to a DataGridView, where the DataGrid already have columns, and if i have columns like TextBox columns it works perfectly, but the problem is if i have columns like ComboBox.
I am trying to do this in Windows Forms. I am just trying to understand the problem whe开发者_运维问答n i load the data to a DataTable from the Database. For example, i am loading the Data from the Database to a Datatable and then i set it as DataSource of the DataGridView, but how i can put the data in customized columns where columns are of ComboBox type?
Try this link.
Binding a Combobox control to a separate source within a DataGrid
Binding data with comboBox in DataGridview
DataGridViewComboBoxColumn Class
combobox column in datagridview after binding the table
Regards
精彩评论