I have dataGridView1 with a DataSource (categoriesBindingSource).
I didn't use the vs.net workbench to bind the second datagridview
(dataGridView2).
I used this code:
bindingSource1.DataSource = GetData("Select id, parent_id, name FROM
categories where parent_id = '" + dgData1 + "' and active = 1 order by
sort_order asc");
dataGridView2.DataSource = bindingSource1;
>From the Select statement, the columns are created on the fly indataGridView2.
I can't go to properties and create the columns I really want to have
since they are in the
Select statement. I can't make the Id column invisible (I want it
invisible because I only want the name column to show).
I need help in figuring out how to format the columns or gain control
over the columns generated on the fly by the Select statement in
dataGridView2 because right now it's not the way I want them.
Any help is appreciaed.
Thanks,
Trint