Fired when the user clicks on a row
|Row||Index to the row that was clicked|
|Button||The button used to click the row|
|Column||Index to the column that was clicked|
|Point||Location of the mouse when clicked|
The OnItemClick event is fired when the user clicks on a report table row. The event provides four parameters:
The Row parameter contains the index to the row that was clicked. Use this parameter in conjuction with the RowData property to decide how to react to the click.
The Button parameter will have one of three values indicating what was used to click the row:
|Left||The left mouse button clicked the row|
|Right||The right mouse button clicked the row|
|Enter||The enter key was used (occurs only when the EnterKeyClickAmt property is set to 1)|
The Column parameter contains the index to the column that was clicked. After getting the clicked row's contents using RowData, use this index to examine the value of the item actually clicked. This value is 0 when the Button parameter is "Enter".
Although the user can rearrange columns, this parameter will always be the same as when the column was first created. For example, if the user moves column 1 to column 5, this parameter will still be 1 when the user clicks on the column in its new position.
The Point parameter provides the mouse coordinates, relative to the top-left corner of the Report Table. The format is "X,Y" where X is the x coordinate and Y is the y coordinate. For example, a value could be "10,100". This parameter is useful for showing popups or context menus. This value is "0,0" when the Button parameter is "Enter".