public void UpdateCell(LaborListRowData rowData) { employeeNumberLabel.Text = rowData.EmployeeNumber.ToString(); employeeNameLabel.Text = rowData.EmployeeName; projectdescription.Text = rowData.Projectdescription; projectnum.Text = rowData.Projectno.ToString(); }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { LaborListRowData selectedItem = Data[indexPath.Row]; tableView.DeselectRow(indexPath, true); if (OnRowSelected != null) { OnRowSelected(this, new RowSelectedEventArgs(tableView, indexPath)); } }
public float MeasureHeight(UITableView tableView, LaborListRowData rowData) { // Initialize the view's so they have the correct content for height calculations UpdateCell(rowData); // Remeasure the layout using the tableView width, allowing for grouped table view margins // and the disclosure indicator Layout.Measure(tableView.Bounds.Width - 20 - 18, float.MaxValue); // Grab the measured height return(Layout.GetMeasuredSize().Height); }