Row: Integer;
The Row property returns the number of the row, that contains the table cell, that generated the OnCellClick, OnHyperlinkClick or OnCellPictureClick events.
Executing the example requires a form. The form must contain the TabSheetBox component and the UiTabSheet component named UiTabSheet1. The UiTabSheet1 is a data source for the TabSheetBox component. This procedure is used as the handler of the OnCellClick event.
Sub TabSheetBox1OnCellClick(Sender: Object; Args: ITabCellEventArgs);
Var
i,j: Integer;
Begin
i := Args.Row;
j := Args.Column;
End Sub TabSheetBox1OnCellClick;
After the event has occurred, the variable "i" will contain the number of the row, and the variable "j" will contain the number of the column where the clicked cell is located.
See also: