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; } }
public override string ToString() { return(Grouper.ToString()); }