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


    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)
                                columnGroup.HeaderTemplate = (DataTemplate)XamlReader.Load(
                    @"<DataTemplate xmlns=''>
                                    <Button Content='" + thisPivotDataColumn.ColumnLabel + "'  /></Border></DataTemplate>");

    Thanks & Regards
Back to Top