DataGridViewCell.MouseClickUnsharesRow(DataGridViewCellMouseEventArgs) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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
En DataGridViewCellMouseEventArgs som innehåller händelsedata.
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
- DataGridView
- OnMouseClick(DataGridViewCellMouseEventArgs)
- MouseDoubleClickUnsharesRow(DataGridViewCellMouseEventArgs)
- MouseDownUnsharesRow(DataGridViewCellMouseEventArgs)
- MouseEnterUnsharesRow(Int32)
- MouseLeaveUnsharesRow(Int32)
- MouseMoveUnsharesRow(DataGridViewCellMouseEventArgs)
- MouseUpUnsharesRow(DataGridViewCellMouseEventArgs)
- DataGridViewCellMouseEventArgs
- metodtips för att skala Windows Forms DataGridView-kontrollen