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

                // Change current list data source item
                // (to ensure currency across all controls
                // bound to this BindingSource)
                //this.wordBindingSource.Position = e.Index;
                this.findStrip1.BindingSource.Position = e.Index;
            }
        }