private void gv_drugBackInfo_MasterRowEmpty ( object sender, MasterRowEmptyEventArgs e)
{
var _gdv = sender as BandedGridView;
if ( _gdv == null ) return ;
var _master = _gdv. GetRow ( e. RowHandle) as DrugBackEntity;
if ( _master != null && _master. BackRecords != null && _master. BackRecords. Count != 0 )
{
e. IsEmpty = false ;
}
else { e. IsEmpty = true ; }
}
private void gv_drugBackInfo_MasterRowGetChildList ( object sender, MasterRowGetChildListEventArgs e)
{
var Master = gc_drugBackInfo. MainView. GetRow ( e. RowHandle) as DrugBackEntity;
if ( Master != null && Master. BackRecords != null )
{
e. ChildList = Master. BackRecords;
}
}
private void gv_drugBackInfo_MasterRowGetLevelDefaultView ( object sender, MasterRowGetLevelDefaultViewEventArgs e)
{
e. DefaultView = SubGrid;
}