ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Detecting In-Cell Button Clicks

The ButtonClick event is provided so that code can respond when the user clicks the in-cell button. Its syntax is as follows:

·      Visual Basic

Private Sub C1TrueDBGrid1_ButtonClick(ByVal sender As Object, ByVal e As C1.Win.C1TrueDBGrid.ColEventArgs) Handles C1TrueDBGrid1.ButtonClick

·      C#

private void C1TrueDBGrid1_ButtonClick( object sender,  C1.Win.C1TrueDBGrid.ColEventArgs e)

·      Delphi

procedure C1TrueDBGrid1_ButtonClick(sender: Object; e: C1.Win.C1TrueDBGrid.ColEventArgs);

In-cell buttons always fire this event when clicked, regardless of whether they were enabled by the Button or ButtonText properties. An example of the ButtonClick event was presented earlier in the section Working with Text.


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.