I want a cell in my datagrid to contain and edit field AND a small button beside it in the same cell to the right. So far I've got the button there, but not sure how to get both there. I need to do this in code. So far I have this for my button. Thanks for your help. Colleen
rootButton.AppendChild(buttonFactory);
I found my answer for anyone looking for the same. I needed to create a StackPanel instead of a border attached to the cell:
myText.Width = 50;
textFactory.SetValue(
myButton.Width = 23;
myButton.Margin =
buttonFactory.SetValue(
rootPanel.AppendChild(textFactory);
rootPanel.AppendChild(buttonFactory);
templButton.VisualTree = rootPanel;
c1DataGrid1.Columns[0].ItemCellEditContentTemplate = templButton;