Beispiel #1
0
 internal SearchResultsView()
 {
     DataSource = new SearchResultsData();
     ReloadScheme();
     AllowDrop                 = false;
     AllowUserToAddRows        = false;
     AllowUserToDeleteRows     = false;
     AllowUserToOrderColumns   = false;
     AllowUserToResizeRows     = false;
     ColumnHeadersVisible      = true;
     RowHeadersVisible         = true;
     EnableHeadersVisualStyles = false;
     ReadOnly                 = true;
     Dock                     = DockStyle.Top;
     BorderStyle              = BorderStyle.None;
     SelectionMode            = DataGridViewSelectionMode.FullRowSelect;
     ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single;
     RowHeadersBorderStyle    = DataGridViewHeaderBorderStyle.Single;
     AutoSizeColumnsMode      = DataGridViewAutoSizeColumnsMode.Fill;
     MaxRowsVisible           = 10;
 }
Beispiel #2
0
 internal SearchResults(SearchResultsData dt)
 {
     Data = dt;
 }