What is the correct way of datagridviewcomboboxcolumn bind with sql database and re- arrange with other column. Suppose if I have columns like below.
Srno
Particulars // this columns is for datagridviewcomboBoxColumn
Amount.
I wants the datagridview's columns correct order as above and the same is for the purpose
of data entry.
Suppose if I have Following Dummy Table like
dummy
Srno
Particulars
Amount.
MySqlConnection Code is as below.
|
The above datagridviewcomboboxcolumn is set to dgv.columns[0] where as I wants the dgv
columns orders as below.
Datagridview.columns[0] is for srno
Datagridview.columns[1] is for Particulars //For datagridviewcomboBoxColumn.
Datagridview.columns[2] is for Amount
Note:- "I need the correct way to add all three columns in datagridview as above order"
mahesh waghelaPosted Nov 4, 2010, 1:04 PM
mahesh waghelaPosted Nov 4, 2010, 2:00 AM
Suthish NairPosted Nov 3, 2010, 12:02 PM
change your query to..
select srno, particulars, Amount from dummy