Hello Sameer,
RowItemClicked event will occur when the user clicks on a specific item in a row.
You can also use SelectedIndexChanged or SelectedItemPressed (it occurs when the selected row was pressed again).
private void touchList1_RowItemClicked(object sender, RowItemClickedEventArgs args)
{
Row clickedRow = this.touchList1.Rows[args.RowIndex];
RowItemText itemText = clickedRow.Items["ContactName"] as RowItemText;
if (itemText != null)
{
// Show selected text
MessageBox.Show(itemText.Text);
}
}
To get the values from selected row, you can use touchList1.Rows collection. You can get the selected row either by args.RowIndex or by touchList1.SelectedIndex property.
Every row can have different RowItems, so you need to get the right item from the collection of items by its name (defined during the design time).
Class RowItem is the base class for RowItemText, RowItemImage, RowItemCheckBox etc. Therefore we have to convert it to the correct type, and then we can access its properties.
Best regards,
Gabriel
the BeeMobile team