ZeeGrid Control Message

ZGM_SETCOLRESTRICTION


ZGM_SETCOLRESTRICTION

An application sends a ZGM_SETCOLRESTRICTION message to set the restriction value of every cell in the specified column in the ZeeGrid. Restrictions perform numeric data entry validation, allowing only valid characters per the restriction to be entered.

ZGM_SETCOLRESTRICTION
wParam = (WPARAM)(int) iCol;         //ZeeGrid column
lParam = (LPARAM)(int) iRestriction; //Restriction value

Parameters

iCol
The value of wParam. The ZeeGrid column to set every cell the restriction value specified in lParam. If this value is zero, the action is performed on all columns.

iRestriction
The value of lParam. The data restriction attribute value to set every cell in the the specified column. Valid values are in the range of [0..4].
The restriction values are defined as follows:

  1. No Restriction
  2. Signed Integer
  3. Unsigned Integer
  4. Signed Double
  5. Unsigned Double

Return Values

This message does not return a value.

Remarks

A restriction only restricts the characters allowed to be entered into a cell by manual keyboard input. If a paste operation is performed on restricted cells, the restriction will apply and the paste operation may not be able to be completed fully.

Copyright © 2002-2016 by David Hillard