How do I add a custom column to my grid that contains a delete button?
I've found only one example of this but it's for the older version of the grid where the new one contains a data template in the grid column and/or a visual tree. I cannot figure out how to add a button into the data template.
//How do I get the btn into the data template??????????????????????????????
I've found only one example of this but it's for the older version of the grid where the new one contains a data template in the grid column and/or a visual tree. I cannot figure out how to add a button into the data template.
grdCol =
new Telerik.Windows.Controls.GridViewColumn() { Name = "grdColDelete" };
DataTemplate dt =
new DataTemplate();
Button
btnDel = new Button(){Content = "Del", Width = 18, Height = 18, CommandParameter = new Binding("ApplicationCommands.Delete")};
//How do I get the btn into the data template??????????????????????????????
grdCol.CellTemplate = dt;