private void tsmiRecordFilter_Click(object sender, EventArgs e) { if (this.dgvHandleData.CurrentCell != null) { string strColumnName = this.dgvHandleData.Columns[this.dgvHandleData.CurrentCell.ColumnIndex].Name; filterFrm = new PopUpFilterForm(this.funfilter); filterFrm.lblFilterColumn.Text = strColumnName; filterFrm.cmbFilterContent.DataSource = new DataTable(); filterFrm.cmbFilterContent.DataSource = dvBasicData.ToTable(true, new string[] { strColumnName }); filterFrm.cmbFilterContent.DisplayMember = strColumnName; filterFrm.ShowDialog(); fundeleFilter delefilter = new fundeleFilter(funfilter); } }
public PopUpFilterForm(fundeleFilter filter) { InitializeComponent(); this.funFilter = filter; }