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

ComboBoxCOlumn + button

1 Answer 31 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Marcin asked on 01 Feb 2011, 03:50 PM
Hello, can i add button to the ComboBoxColumn in Grid.
In CollectionGrid_CellEditorInitialized(object sender, GridViewCellEventArgs e) event i create:
RadComboBoxEditorElement editorElement = (RadComboBoxEditorElement)editor.EditorElement;
and next
RadComboBoxEditorElement editorElement = (RadComboBoxEditorElement)editor.EditorElement;
editorElement.DataSource = DictBindingSource;
 
and I try this:
RadButtonElement button = new RadButtonElement();
button.MinSize = new System.Drawing.Size(30, 15);
button.Text = "+";
button.MaxSize = button.MinSize;
editorElement.Children.Add(button);

but button is under Cobobox. Any idea?
Thanks for every help.

1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 01 Feb 2011, 04:03 PM
Hello,

Please take a look at this KB article that tells you how to arrange multiple controls in a grid view cell.
hope that helps
Richard
Tags
GridView
Asked by
Marcin
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or