Ejemplo n.º 1
0
        private void ASPBrowseForm_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape)
            {
                Dispose();
            }

            if (e.KeyCode == Keys.Enter)
            {
                if (BrowseGrid.SelectedRows.Count > 0)
                {
                    Select = true;
                    GetResult(BrowseGrid.CurrentCell.RowIndex);
                    Dispose();
                }
            }

            if (e.KeyData == (Keys.Control | Keys.F))
            {
                BrowseFind findForm = new BrowseFind();
                ASPComboboxItem.GenerateComboboxColumn(ref findForm.CbColumn, ref BrowseGrid);
                findForm.ShowDialog(this);
                if (findForm.Find)
                {
                    ColumnSearch = findForm.columnSearch;
                    ValueSearch  = findForm.valueSearch;
                    GetTable();
                }
            }
        }
Ejemplo n.º 2
0
 private void GenerateComboColumn()
 {
     ASPComboboxItem.GenerateComboboxColumn(ref CbColumns, ref dataGridViewInput);
     CbOrder.Items.Add("ASC");
     CbOrder.Items.Add("DESC");
     CbOrder.SelectedItem = "ASC";
 }
Ejemplo n.º 3
0
 private void GenerateComboColumn()
 {
     ASPComboboxItem.GenerateComboboxColumn(ref CbColumns, ref dataGridView);
     CbOrder.SelectedItem = "ASC";
 }