Beispiel #1
0
 private void gridViewDoki_MasterRowGetRelationCount(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowGetRelationCountEventArgs e)
 {
     try
     {
         e.RelationCount = 1;
     }
     catch (Exception ex)
     {
         log.Error(ex.Message);
         log.Error(ex.InnerException.Message);
     }
 }
Beispiel #2
0
        void GridView_MasterRowGetRelationCount(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowGetRelationCountEventArgs e)
        {
            var request = GetRow(e.RowHandle);

            if (request != null)
            {
                e.RelationCount = (request.HasApprovedRequests ? 1 : 0) + (request.HasRejectedRequests ? 1 : 0);
            }
            else
            {
                e.RelationCount = 2;
            }
        }
 private void OnMasterRowGetRelationCount(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowGetRelationCountEventArgs e)
 {
     e.RelationCount = 1;
 }
Beispiel #4
0
 private void gridViewEntradas_MasterRowGetRelationCount(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowGetRelationCountEventArgs e)
 {
     //e.RelationCount = 1;
 }