>IF using PrimaryBizObject = .t. >string cTableName = this.primaryBizObject.TableName; >this.BindingContext[this.PrimaryBizObject.GetCurrentDataSet(),cTableName].Position = > this.PrimaryBizObject.GetCurrentDataSet().Tables[cTableName].Rows.Count -1; >It may be easiest to create a subclass of mmButtonBehavior<\b>. You can either set the BindingSource property to a specific business object, or, if you leave this property blank, the button's GetBizObj() method automatically tries to get a reference to the parent form's primary business object. You can call this method from within one of your subclassed button's methods. For example:
mmBusinessObject BizObj = this.GetBizObj(); if (BizObj != null) { string MyTableName = BizObj.TableName; }Regards,