Språk

DataGridViewCell.MouseClickUnsharesRow(DataGridViewCellMouseEventArgs) Metod

Definition

Anger om en rad kommer att delas upp om användaren klickar på en musknapp medan pekaren finns på en cell på raden.

protected:
 virtual bool MouseClickUnsharesRow(System::Windows::Forms::DataGridViewCellMouseEventArgs ^ e);
protected virtual bool MouseClickUnsharesRow(System.Windows.Forms.DataGridViewCellMouseEventArgs e);
abstract member MouseClickUnsharesRow : System.Windows.Forms.DataGridViewCellMouseEventArgs -> bool
override this.MouseClickUnsharesRow : System.Windows.Forms.DataGridViewCellMouseEventArgs -> bool
Protected Overridable Function MouseClickUnsharesRow (e As DataGridViewCellMouseEventArgs) As Boolean

Parametrar

Returer

trueom raden kommer att tas bort från delningen, annars . false DataGridViewCell Basklassen returnerar falsealltid .

Kommentarer

Metoden MouseClickUnsharesRow anropas precis före OnMouseClick metoden. Det måste returneras true om anropet till OnMouseClick har effekten att den rad som innehåller cellen inte kan delas. Annars bör den returnera false.

Mer information om raddelning finns i Best Practices for Scaling the Windows Forms DataGridView Control.

Gäller för

Se även