C# Class MetroFramework.Controls.MetroDataGridHelper

Datei anzeigen Open project: AshishKilmist/MetroFramework Class Usage Examples

Public Methods

Method Description
MetroDataGridHelper ( MetroScrollBar scrollbar, System.Windows.Forms.DataGridView grid, bool vertical = true ) : System
UpdateScrollbar ( ) : void

Updates the scrollbar values

VisibleHorizontalScroll ( ) : bool
VisibleVerticalScroll ( ) : bool

Private Methods

Method Description
BeginIgnoreScrollbarChangeEvents ( ) : void
EndIgnoreScrollbarChangeEvents ( ) : void
VisibleFlexGridCols ( ) : int

VisibleFlexGridRows ( ) : int

Determine the current count of visible rows

_grid_AfterDataRefresh ( object sender, System e ) : void
_grid_Resize ( object sender, EventArgs e ) : void
_grid_RowsAdded ( object sender, System.Windows.Forms.DataGridViewRowsAddedEventArgs e ) : void
_grid_Scroll ( object sender, ScrollEventArgs e ) : void
_grid_UserDeletedRow ( object sender, System.Windows.Forms.DataGridViewRowEventArgs e ) : void
_scrollbar_Scroll ( object sender, System e ) : void

Method Details

MetroDataGridHelper() public method

public MetroDataGridHelper ( MetroScrollBar scrollbar, System.Windows.Forms.DataGridView grid, bool vertical = true ) : System
scrollbar MetroScrollBar
grid System.Windows.Forms.DataGridView
vertical bool
return System

UpdateScrollbar() public method

Updates the scrollbar values
public UpdateScrollbar ( ) : void
return void

VisibleHorizontalScroll() public method

public VisibleHorizontalScroll ( ) : bool
return bool

VisibleVerticalScroll() public method

public VisibleVerticalScroll ( ) : bool
return bool