The following table lists some important events that you may want to write code. Please note that, the event id listed below is one word and there are no spaces or new line characters. Same is the case with the suggested event name.
|
PB Event ID |
Suggested name for the event |
When it is fired |
Comments |
|
pbm_dwnbacktabout |
Ue_BackTabOut |
This event is fired when the focus is on the first row and first non-protected, non-zero tab sequence field in the
DataWindow and you press Tab key while holding down the Shift key. |
You may want to write code to go to the first field in the last row of the DataWindow. |
|
pbm_dwndropdown |
Ue_DropDown |
Occurs just before the list provided by a DropDownDataWindow is displayed. Use this event to retrieve new data for the child DataWindow. |
|
|
pbm_dwngraphcreate |
Ue_GraphCreate |
Occurs after the DataWindow control creates a graph and populates it with data, but before it has displayed the graph. In this event, you can change the appearance of the data about to be displayed. |
|
|
pbm_KeyDown |
Ue_KeyDown |
Occurs whenever the user presses a key when the DW control is in focus. |
|
|
pbm_dwnmessageText |
Ue_MessageText |
Occurs when a crosstab DataWindow generates a message. Typical messages are Retrieving data and Building crosstab. |
|
|
pbm_dwnmousemove |
Ue_MouseMove |
Occurs when the user moves the mouse pointer in a DataWindow control. |
|
|
pbm_dwnlbuttonup |
Ue_MouseUp |
Occurs when the user releases a mouse button in a DataWindow control. |
|
|
pbm_dwnprocessenter |
Ue_ProcessEnter |
Occurs when the user presses the Enter key when focus is in the DataWindow or the DataWindow's edit control. |
BY default, pressing the Enter key moves the focus to the next row into the same column, if there are more rows below. Nothing happens otherwise. |
|
pbm_dwntabdownout |
Ue_TabDownOut |
Occurs when the current row is the last row and the user presses the ENTER or down arrow to change focus to the next item in a DataWindow column. |
If user presses ENTER key, then 1. pbm_dwnProcessEnter 2. ItemChanged (if data is changed) 3. This event are fired in sequence.
If TAB key is pressed, ItemChanged will fire before this if data is changed. |
|
pbm_dwntabout |
Ue_TabOut |
Occurs when the focus is on the last row and column and the user presses TAB key or, in some edit styles, the right arrow, to move to the next cell in the DataWindow. It also occurs when the user types the maximum number of characters in a column with the EditMask edit style so that focus moves to the next cell. The EditMask.AutoSkip property must be set to Yes. |
ItemChanged event is fired before this if the data is changed. |
|
pbm_dwntabupout |
Ue_TabUpOut |
Occurs the focus is on the first row and the user presses Shift+ENTER or up arrow to move to the previous item in a DataWindow column. |
If user presses Shift + ENTER, then events are fired in the following sequence: 1. pbm_dwnProcessEnter 2. ItemChanged (if data is changed) and 3. This event itself. |