Exemple #1
0
 protected virtual void OnItemFound(ItemFoundEventArgs e)
 {
     // Report find results
     if (ItemFound != null)
     {
         ItemFound(this, e);
     }
 }
        private void findStrip_ItemFound(object sender, ItemFoundEventArgs e)
        {
            // If value found, select row
            if (e.Index >= 0)
            {
                this.fileInArchiveDataGridView.ClearSelection();
                this.fileInArchiveDataGridView.Rows[e.Index].Selected = true;

                // Change current list data source item
                // (to ensure currency across all controls
                // bound to this BindingSource)
                //this.fileInArchiveDataGridView.Po = e.Index;
                this.fileInArchiveDataGridView.CurrentCell = this.fileInArchiveDataGridView.Rows[e.Index].Cells[0];
            }
        }
        private void findStrip_ItemFound(object sender, ItemFoundEventArgs e)
        {
            // If value found, select row
            if (e.Index >= 0)
            {
                this.fileInArchiveDataGridView.ClearSelection();
                this.fileInArchiveDataGridView.Rows[e.Index].Selected = true;

                // Change current list data source item
                // (to ensure currency across all controls
                // bound to this BindingSource)
                //this.fileInArchiveDataGridView.Po = e.Index;
                this.fileInArchiveDataGridView.CurrentCell = this.fileInArchiveDataGridView.Rows[e.Index].Cells[0];
            }
        }
Exemple #4
0
 protected virtual void OnItemFound(ItemFoundEventArgs e)
 {
     // Report find results
     if (ItemFound != null) ItemFound(this, e);
 }