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

GridViewColumnGroup Click Event

0 Answers 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rajasekhar
Top achievements
Rank 1
Rajasekhar asked on 01 Jun 2012, 01:00 PM
Hi,

I want to add a button inside GridViewColumnGroup and on the click of this button, i want to take some action, but some how i am not able to accomplish this, code i am using 
 GridViewColumnGroup columnGroup = new GridViewColumnGroup();
                            columnGroup.Name = thisPivotDataColumn.UniqueName;
                            columnGroup.HeaderStyle = (Style)
                                ((UserControl)Application.Current.RootVisual).Resources["GridViewHeaderGridViewColumnGroup"];
                            columnGroup.HeaderTemplate = (DataTemplate)XamlReader.Load(
                @"<DataTemplate xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'>
                                <Border>
                                <Button Content='" + thisPivotDataColumn.ColumnLabel + "'  /></Border></DataTemplate>");

Thanks & Regards
Rajasekhar
Tags
GridView
Asked by
Rajasekhar
Top achievements
Rank 1
Share this question
or