Hello ,
Lets see If column "CategoryName" is the first column ,
So , first I'm writing :
after this line goes code:
the new column appears at the end , so I have to move it at the right place:
But what happened with retrieved values of this column?
The column is empty.
So do I have to loop through and copy all the values from the removed column and assign them to the new one or there is a solution that all originally retrieved values are reflected in a new MultiComboBoxColumn?
In a case when I'm trying to assign the values .. it does not work because the cells after this assignment still empty...???? :
Thank you ,
Victoria.
Lets see If column "CategoryName" is the first column ,
So , first I'm writing :
radGridView1.DataSource = dtDataTable;
after this line goes code:
radGridView1.Columns.Remove("CategoryName");
GridViewMultiComboBoxColumn column = new GridViewMultiComboBoxColumn();
column.FieldName = "CategoryName";
radGridView1.Columns.Add(column);
radGridView1.Columns.Move(radGridView1.Columns.Count - 1, 0);
The column is empty.
So do I have to loop through and copy all the values from the removed column and assign them to the new one or there is a solution that all originally retrieved values are reflected in a new MultiComboBoxColumn?
In a case when I'm trying to assign the values .. it does not work because the cells after this assignment still empty...???? :
if (dtSource.Rows.Count > 0)
{
for (int i = 0; i < radGridView1.Rows.Count; i++)
{
radGridView1.Rows[i].Cells["c_price_lob"].BeginEdit();
radGridView1.Rows[i].Cells["c_price_lob"].Value = dtSource.Rows[i][3].ToString();
radGridView1.Rows[i].Cells["c_price_lob"].EndEdit();
}
}
Thank you ,
Victoria.