Exemplo n.º 1
0
 void grouper_GroupingChanged(object sender, EventArgs e)
 {
     if (settingvalues)
     {
         return;
     }
     settingvalues = true;
     try
     {
         GroupingInfo gr = grouper.GroupOn;
         chk.Checked = gr != null;
         if (chk.Checked)
         {
             var prop = FindProperty(gr);
             cmbFields.SelectedItem = prop;
             if (prop == null)
             {
                 cmbFields.Text = gr.ToString();
             }
         }
         /*if (cm != null)cm.Grouper = dgvGrouper;*/
     }
     finally
     {
         settingvalues = false;
     }
 }
Exemplo n.º 2
0
 public override string ToString()
 {
     return(Grouper.ToString());
 }