Hi,
How to change the order of a colspan? I have the following table:
dataGridView1.Cols.Add("Col 1.1");
dataGridView1.Cols.Add("Col 1.2");
dataGridView1.Cols.Add("Col 2.1");
dataGridView1.Cols.Add("Col 2.2");
dataGridView1.Header.Rows.Add();
dataGridView1.Header.Cells[1, 0].Value = "Col 1";
dataGridView1.Header.Cells[1, 0].TextAlign = iGContentAlignment.MiddleCenter;
dataGridView1.Header.Cells[1, 0].SpanCols = 2;
dataGridView1.Header.Cells[1, 2].Value = "Col 2";
dataGridView1.Header.Cells[1, 2].TextAlign = iGContentAlignment.MiddleCenter;
dataGridView1.Header.Cells[1, 2].SpanCols = 2;
I want to change the order of colspans 1 and 2, but when i say:
dataGridView1.Cols[2].Order = 0;
i get the following exception:
'Invalid source or destination order'
How to get this working?