public float MeasureHeight(UITableView tableView, AllocEmpRowData rowData)
        {
            UpdateCell(rowData);
            Layout.Measure(tableView.Bounds.Width - 20 - 18, float.MaxValue);

            return(Layout.GetMeasuredSize().Height);
        }
Example #2
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            AllocEmpRowData selectedItem = Data[indexPath.Row];

            tableView.DeselectRow(indexPath, true);

            if (OnRowSelected != null)
            {
                OnRowSelected(this, new RowSelectedEventArgs(tableView, indexPath));
            }
        }
 public void UpdateCell(AllocEmpRowData rowData)
 {
     EmployeePersonnelNumber.Text = rowData.EmployeeNumber.ToString();
     ProjectNumber.Text           = rowData.Projectno.ToString();
 }