Example #1
0
        private void gridViewMaster_MasterRowGetChildList(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowGetChildListEventArgs e)
        {
            ShipsMD5 s = (ShipsMD5)gridViewMaster.GetRow(e.RowHandle);
            var      detailBindingSource = new BindingSource(s, "ShipsMD5Detail");

            e.ChildList = detailBindingSource;
            SetBindingSourceToDetailStaticFields(detailBindingSource);
        }
Example #2
0
        private void gridViewMaster_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            ShipsMD5 s = (ShipsMD5)gridViewMaster.GetRow(e.RowHandle);

            e.IsEmpty = s.ShipsMD5Detail.Count == 0;
        }