简单帐表做好后,什么获取选中行的值。
public override void AfterBarItemClick(AfterBarItemClickEventArgs e)
{
switch (e.BarItemKey.ToUpper())
{
case "TBDATA_BTN":
int row = this.View.Model.GetEntryCurrentRowIndex("FList");
DynamicObject entryDatas =
this.View.Model.GetEntityDataObject(this.View.Model.BillBusinessInfo.GetEntity("FList"), row);
object a = this.View.Model.GetValue("FDEPTID", row);
break;
}
}
int row = this.View.Model.GetEntryCurrentRowIndex("FList"); 这样可以取到选中行。但是
object a = this.View.Model.GetValue("FDEPTID", row); 这样取不到值,为Null。
DynamicObject entryDatas =
this.View.Model.GetEntityDataObject(this.View.Model.BillBusinessInfo.GetEntity("FList"), row);
这样的值也为null
推荐阅读