Share via


FormDataSource.defaultMark Method

Definition

Overloads

defaultMark()

Sets the default mark value for records in a form, which determines whether records are marked when they have been selected in a grid.

defaultMark(Int32)

defaultMark()

Sets the default mark value for records in a form, which determines whether records are marked when they have been selected in a grid.

public:
 virtual int defaultMark();
public virtual int defaultMark ();
abstract member defaultMark : unit -> int
override this.defaultMark : unit -> int
Public Overridable Function defaultMark () As Integer

Returns

The default mark value for records in the form.

Remarks

This method is executed when a user clicks the top-left corner in a grid control to select all the records in the grid. The defaultMark method can be overridden on a form data source. Right-click the Methods node under the data source, and then select Override Method > defaultMark.

Applies to

defaultMark(Int32)

public:
 virtual int defaultMark(int _value);
public virtual int defaultMark (int _value);
abstract member defaultMark : int -> int
override this.defaultMark : int -> int
Public Overridable Function defaultMark (_value As Integer) As Integer

Parameters

_value
Int32

The default mark value for records in the form. The standard default mark value for records is 1, but this value can be overridden by setting the value parameter. A value other than 0 (zero) causes the record to be displayed as marked in grids in the form when they have been selected.

Returns

Applies to