GridViewColumnGroup Click Event

1 posts, 0 answers
  1. Rajasekhar
    Rajasekhar avatar
    2 posts
    Member since:
    Oct 2011

    Posted 01 Jun 2012 Link to this post

    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
Back to Top