예제 #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];
            }
        }
예제 #3
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];
            }
        }
예제 #4
0
파일: FindStrip.cs 프로젝트: Amver/easymyp
 protected virtual void OnItemFound(ItemFoundEventArgs e)
 {
     // Report find results
     if (ItemFound != null) ItemFound(this, e);
 }