C# Class SIL.FieldWorks.Common.Controls.SplitGridView.CollapsibleDataGridView

A DataGridView that collapses a column by hiding it if it reaches the minimum possible size (2 pixels).
Inheritance: System.Windows.Forms.DataGridView
Mostrar archivo Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
AdjustRowWeight void
OnMouseUp void
OnRowHeightChanged void
Parent_ParentChanged void
ResizeRows void

Public Methods

Method Description
CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

This method is thread safe.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

OnColumnWidthChanged ( System.Windows.Forms.DataGridViewColumnEventArgs e ) : void

Raises the E:System.Windows.Forms.DataGridView.ColumnWidthChanged event.

OnDataError ( bool displayErrorDialogIfNoHandler, System.Windows.Forms.DataGridViewDataErrorEventArgs e ) : void

Raises the event.

OnParentChanged ( EventArgs e ) : void

Raises the event.

OnShown ( object sender, EventArgs e ) : void

Called when initially shown.

OnSizeChanged ( EventArgs e ) : void

Raises the event.

ProcessKeyPreview ( Message &m ) : bool

Previews a keyboard message.

Private Methods

Method Description
AdjustRowWeight ( SIL.FieldWorks.Common.Controls.SplitGridView.DataGridViewControlRow row ) : void

Adjusts the row weight based on the new height of the row.

OnMouseUp ( MouseEventArgs e ) : void
OnRowHeightChanged ( System.Windows.Forms.DataGridViewRowEventArgs e ) : void
Parent_ParentChanged ( object sender, EventArgs e ) : void

Handles the ParentChanged event of the Parent control.

ResizeRows ( bool fForceHeightChanged ) : void

Method Details

CheckDisposed() public method

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
This method is thread safe.
public CheckDisposed ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

OnColumnWidthChanged() protected method

Raises the E:System.Windows.Forms.DataGridView.ColumnWidthChanged event.
The column indicated by the /// property of /// e does not belong to this /// control.
protected OnColumnWidthChanged ( System.Windows.Forms.DataGridViewColumnEventArgs e ) : void
e System.Windows.Forms.DataGridViewColumnEventArgs A /// that contains the event data.
return void

OnDataError() protected method

Raises the event.
protected OnDataError ( bool displayErrorDialogIfNoHandler, System.Windows.Forms.DataGridViewDataErrorEventArgs e ) : void
displayErrorDialogIfNoHandler bool true to display an error dialog box if /// there is no handler for the /// event.
e System.Windows.Forms.DataGridViewDataErrorEventArgs A /// that contains the event data.
return void

OnParentChanged() protected method

Raises the event.
protected OnParentChanged ( EventArgs e ) : void
e System.EventArgs An that contains the event /// data.
return void

OnShown() protected method

Called when initially shown.
protected OnShown ( object sender, EventArgs e ) : void
sender object The sender.
e System.EventArgs The instance containing the event data.
return void

OnSizeChanged() protected method

Raises the event.
protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs An that contains the event /// data.
return void

ProcessKeyPreview() protected method

Previews a keyboard message.
protected ProcessKeyPreview ( Message &m ) : bool
m System.Windows.Forms.Message A , passed by /// reference, that represents the window message to process.
return bool