This is a migrated thread and some comments may be shown as answers.

MultiColumnDataColumn Formatting

1 Answer 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tooraj
Top achievements
Rank 1
Tooraj asked on 27 Oct 2010, 05:44 AM
Hi,
I've used a MultiColumnDataColumn in my GridView. contents of the cell appears as I want but when when the contents of the cell do not appear with the same formatting. how can I set formatting of rows which appears inside the grid in the MultiColumnDataColumn.
 thank you.

1 Answer, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 27 Oct 2010, 08:04 AM
Hello,

You can access the grid displayed in the GridViewMultiComboBoxColumn in the CellBeginEdit event, like so:
void radGridView1_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
    if (radGridView1.CurrentCell.ColumnInfo.Name == "Multi")
    {
        var multiComboEditor = radGridView1.ActiveEditor as RadMultiColumnComboBoxElement;
        var gridControl = multiComboEditor.EditorControl as MultiColumnComboGridView;
         
    }
}
Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
Tags
GridView
Asked by
Tooraj
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Share this question
or