public void filterapply(GridEX grid, string filtername, CreateFilterForm hiddeninstanceinitialized) { foreach (string item in hiddeninstanceinitialized.comboBox7.Items) { if (item == filtername) { hiddeninstanceinitialized.comboBox7.SelectedItem = filtername; hiddeninstanceinitialized.comboBox7_SelectedIndexChanged(this, new EventArgs()); List <string> stacknames = new List <string>(); hiddeninstanceinitialized.processList(ref grid, false, 1, stacknames); } } foreach (string item in hiddeninstanceinitialized.comboBox1.Items) { if (item == filtername) { hiddeninstanceinitialized.comboBox1.SelectedItem = filtername; //hiddeninstanceinitialized.comboBox1_SelectedIndexChanged(this, new EventArgs()); GridEXColumn column = grid.RootTable.Columns[hiddeninstanceinitialized.comboBox5.SelectedValue.ToString()]; GridEXFilterCondition singlefiltercondtion = hiddenInstance.CreateSinglefilter(hiddenInstance.textBox6.Text, hiddenInstance.textBox7.Text, hiddenInstance.comboBox6.SelectedValue.ToString(), column); grid.RootTable.FilterCondition = singlefiltercondtion; grid.RootTable.ApplyFilter(singlefiltercondtion); break; } } grid.Refetch(); grid.Select(); }
public void selectfiltered(GridEX grid) { grid.SelectionMode = Janus.Windows.GridEX.SelectionMode.MultipleSelection; Janus.Windows.GridEX.GridEXRow visiblerow; if (grid.RowCount > 0) { for (int i = 0; i < grid.RowCount; i++) { visiblerow = grid.GetRow(i); gridEX2.SelectedItems.Add(visiblerow.Position); } } this.textBox1.Text = gridEX2.RowCount.ToString() + " εγγραφές"; grid.Select(); }