private void ShowSearch() { if (base.SortedColumn != null) { if (this.m_pnlQuickSearch == null) { this.m_pnlQuickSearch = new PanelQuickSearch(); base.Controls.Add(this.m_pnlQuickSearch); this.m_pnlQuickSearch.SearchChanged += new PanelQuickSearch.SearchHandler(this.m_pnlQuickSearch_SearchChanged); } if (base.SelectedRows.Count > 0) { this.m_pnlQuickSearch.Search = base.SelectedRows[0].Cells[base.SortedColumn.Index].Value.ToString(); } this.m_pnlQuickSearch.Column = base.SortedColumn.HeaderText; this.m_pnlQuickSearch.Show(); this.m_pnlQuickSearch.Focus(); } }
void ShowSearch() { if (SortedColumn != null) { if (m_pnlQuickSearch == null) { m_pnlQuickSearch = new PanelQuickSearch(); Controls.Add(m_pnlQuickSearch); m_pnlQuickSearch.SearchChanged += m_pnlQuickSearch_SearchChanged; } if (SelectedRows.Count > 0) { m_pnlQuickSearch.Search = SelectedRows[0].Cells[SortedColumn.Index].Value.ToString(); } m_pnlQuickSearch.Column = SortedColumn.HeaderText; m_pnlQuickSearch.Show(); m_pnlQuickSearch.Focus(); } }