Click here to Skip to main content
15,947,389 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Is it possible to create a databinding with a datagridviewcolumn
and add it to a datagridview

I'm trying to create a datagridview that is binded to a database table, and i know that you can bind the datagridview to a specific table.

the problem is, that the table has some comboboxes in it but they aren't shown in the datagridview.
Instead of chosing a customer I need to give up a number.

I thought to create a new class, but I don't have that much experiance with creating new classes.

this is what i got i don't know whats next:confused: C#
public partial class column : DataGridViewComboBoxColumn
        public column()
        public column(IContainer container)
        BindingSource binding;
        public BindingSource Binding
            get { return binding; }
            set { binding = value; }

1 solution

Any specific reason why you repost [^]it?

You got an answer earlier. Did you look at it? tried?
Please follow the question at one place.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900