Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
UltrawinGrid Group By Row CheckBox checked state event
posted

Hi,

    I have added "CheckBoxUIElement" to GroupByRow in UltraWinGrid  by using the instructions in article http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=4340

 

I am experiencing an issue at rising the checkbox check state event to child GroupByRow, if I check the header GroupByRow.

Ex: I have three GroupByRows and each GroupByRow have a checkBox.(Please find the attachment to see the grid groupByRow checkboxes)

If I check the Top or middle GropByRow checkbox the check state change event is not raised to child GroupByRow checkbox and to normal rows.

(CheckBoxUIElement seems to be have only one event: ElementClick)

below is the code snippet used to check the  

private void aCheckBoxOnHeader_CreationFilter_HeaderCheckBoxClicked(object sender, CheckBoxOnGroupByHeader.HeaderCheckBoxEventArgs e)

{

 if (e.Header is UltraGridGroupByRow)

  {

   foreach (UltraGridRow aRow in e.Header.Rows)

      {

                       if (aRow is UltraGridGroupByRow)

                        {

                            Infragistics.Win.UltraWinGrid.UltraGridGroupByRow aGroupByRowHeader =

                 ( Infragistics.Win.UltraWinGrid.UltraGridGroupByRow)aRow;

                            aGroupByRowHeader.Tag = e.CurrentCheckState;

                            aRow.Refresh(RefreshRow.ReloadData, true);

                        }

                        else

                        {

                            aRow.Cells["checkColKey"].Value = (e.CurrentCheckState == CheckState.Checked);

                        }

        }

   }

}