ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

ValueItems.CycleOnClick Property

Gets or sets a value indicating whether users can cycle through ValueItem by clicking on a cell.

[Visual Basic]

Public Property CycleOnClick As Boolean

[C#]

public bool CycleOnClick {get;set;}

[Delphi]

public property CycleOnClick: Boolean read get_CycleOnClick write set_CycleOnClick;

Remarks

If True, the user can click on the current cell to display the next available item. If the last value item is displayed, then clicking displays the first item in the list.

If False (the default), then the mouse operates as usual within the associated column.

Note: The CycleOnClick property has no effect when the C1TrueDBGrid.MarqueeStyle property is set to FloatingEditor.

Example

The following code allows users to cycle through allowable values by clicking on a cell:

·      Visual Basic

       Me.C1TrueDBGrid1.Columns("Country").ValueItems.CycleOnClick = True

·      C#

       this.c1TrueDBGrid1.Columns["Country"].ValueItems.CycleOnClick := true;

·      Delphi

       Self.C1TrueDBGrid1.Columns['Country'].ValueItems.CycleOnClick := True;

See Also

ValueItems Class | ValueItems Members | C1.Win.C1TrueDBGrid Namespace


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