I have a datagridview that I want to fill with an array, for this I do the following:
BindingSource CantonesBindingSource;
CantonesBindingSource = new BindingSource(ConfData.TcCnf.TcCnfArray, null);
oTcConfig.dataGridViewTcCnf.DataSource = CantonesBindingSource;
This way I fill in the datagridview with the array. The problem is that the title of the columns is not the one I want.
I have already created my datagridview in advance with the names of the columns I want and I want to fill in these fields not to create them again (it is an array of objects where each column is an attribute of that object). I do not know if I've explained myself well.
This is what I want to fill me
This is what creates me. I want to fill in the fields, not create a new one
Any solution? Thank you very much