public override void ViewDidLoad ()
{
base.ViewDidLoad ();
this.flexGrid.ColumnHeaderFont = UIFont.BoldSystemFontOfSize (this.flexGrid.Font.PointSize);
this.flexGrid.IsReadOnly = true;
this.flexGrid.ItemsSource = Customer.GetCustomerList (100);
this.flexGrid.SelectionChanged += (sender, e) => this.EditButton.Enabled = true;
this.flexGrid.CellDoubleTapped += (sender, panel, range) => {
InvokeInBackground (() => {
System.Threading.Thread.Sleep (500);
InvokeOnMainThread (() => {
if (sender.Selection.Row != -1)
this.doEdit (null);
});
});
return false;
};
}