开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜