Exemplo n.º 1
0
        private void OnTemplateSelected(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            //Event handler for change in template row selections
            try {
                //Clear current selections
                for (int i = 0; i < this.mTemplates.ClientInboundScheduleTable.Rows.Count; i++)
                {
                    this.mTemplates.ClientInboundScheduleTable[i].Selected = false;
                }

                //Update all selected load templates as selected for Add
                for (int i = 0; i < this.grdTemplates.Selected.Rows.Count; i++)
                {
                    int templateID = int.Parse(this.grdTemplates.Selected.Rows[i].Cells["ID"].Value.ToString());
                    for (int j = 0; j < this.mTemplates.ClientInboundScheduleTable.Rows.Count; j++)
                    {
                        if (this.mTemplates.ClientInboundScheduleTable[j].ID == templateID)
                        {
                            this.mTemplates.ClientInboundScheduleTable[j].Selected = true;
                            break;
                        }
                    }
                }
            }
            catch (Exception ex) { App.ReportError(ex, false, LogLevel.Warning); }
            finally { setUserServices(); }
        }
        private void grdData_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {

            foreach (UltraGridRow rowSelected in this.grdData.Selected.Rows)
            {
                if (rowSelected.Band.Index.ToString() == "0")
                {
                    btnEditar.Enabled = false;
                    btnEliminar.Enabled = false;
                 
                    return;
                }
            }

            btnEditar.Enabled=
            btnEliminar.Enabled=

                  (grdData.Selected.Rows.Count > 0);

            if (grdData.Selected.Rows.Count == 0)
                return;

            btnExport.Enabled = grdData.Rows.Count > 0;

        }
 private void grd_mvto_ListaVersiones_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
 {
     if (DS_Grilla.Tables[0].Rows.Count > 0)
     {
         Infragistics.Win.UltraWinGrid.UltraGridRow oRow;
         oRow = this.grd_mvto_ListaVersiones.ActiveRow;
         if (!(oRow.Cells[0].Value == DBNull.Value))
         {
             if ((int)(oRow.Cells[0].Value) > 0)
             {
                 oFC_Modelo.IidFormulacion_Cabecera = Convert.ToInt32(oRow.Cells[0].Text);
                 oFC_Modelo.CañoProceso             = (string)(oRow.Cells[1].Text);
                 oFC_Modelo.Cversion          = (string)(oRow.Cells[2].Text);
                 oFC_Modelo.DfecFormulacion   = Convert.ToDateTime(oRow.Cells[3].Text);
                 oFC_Modelo.cCodTipoDocumento = (string)(oRow.Cells[6].Text);
                 oFC_Modelo.cNumDocumento     = (string)(oRow.Cells[8].Text);
                 oFC_Modelo.Tnota             = (string)(oRow.Cells[4].Text);
                 oFC_Modelo.Bactivo           = Convert.ToBoolean(oRow.Cells[5].Text);
                 intIidFormulacion_Cabecera   = oFC_Modelo.IidFormulacion_Cabecera;
                 mostrarDocumento(oFC_Modelo);
             }
             //}
         }
     }
 }
        private void grdTree_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            if (grdTree.Selected.Rows.Count == 0)
            {
                return;
            }
            if (grdTree.Selected.Rows[0].Cells == null)
            {
                return;
            }

            foreach (UltraGridRow rowSelected in grdTree.Selected.Rows)
            {
                if (rowSelected.Band.Index.ToString() == "0")
                {
                    grdData.DataSource = _listGerenciaTipoExamen;
                }
                else if (rowSelected.Band.Index.ToString() == "1")
                {
                    var tipoEso = grdTree.Selected.Rows[0].Cells["TipoEso"].Value.ToString();
                    grdData.DataSource = _listGerenciaTipoExamen.FindAll(p => p.TipoEso == tipoEso).ToList();
                }
                else if (rowSelected.Band.Index.ToString() == "2")
                {
                    var tipoEso = grdTree.Selected.Rows[0].Cells["TipoEso"].Value.ToString();
                    var empresa = grdTree.Selected.Rows[0].Cells["Nombre"].Value.ToString();

                    grdData.DataSource = _listGerenciaTipoExamen.FindAll(p => p.TipoEso == tipoEso && p.Empresa == empresa).ToList();
                }
            }
        }
Exemplo n.º 5
0
		private void OnSortStationSelected(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e) {
			//Event handler for sort station selected
			try {
				this.cmdNext.Enabled = (this.grdSortStations.Selected.Rows.Count>0);
				this.grdSortStations.Focus();
			}
			catch(Exception ex) { App.ReportError(ex, false, LogLevel.Warning); }
		}
Exemplo n.º 6
0
 private void OnLoadTenderSelected(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
 {
     //Event handler for change in selected load tender
     try {
         //
     }
     catch (Exception ex) { App.ReportError(ex, false, LogLevel.Warning); }
     finally { setUserServices(); }
 }
Exemplo n.º 7
0
        private void Grd_Buscados_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            Infragistics.Win.UltraWinGrid.UltraGridRow oRow;
            oRow = this.Grd_Buscados.ActiveRow;
            string strNumRequerimiento   = Convert.ToString(oRow.Cells[0].Value);
            string strNomTipoAdquisicion = Convert.ToString(oRow.Cells[5].Value);
            string strPaso = Convert.ToString(oRow.Cells[3].Value);

            this.MostrarRequerimiento(strNumRequerimiento, strNomTipoAdquisicion, strPaso);
        }
Exemplo n.º 8
0
 private void grdComponent_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
 {
     if (((UltraGrid)sender).Selected.Rows.Count != 0)
     {
         UltraGrid grd = ((UltraGrid)sender);
         _componentId               = grdComponent.Selected.Rows[0].Cells[0].Value.ToString();
         txtFinalPrice.Value        = grd.Selected.Rows[0].Cells["r_BasePrice"].Value.ToString();
         lblExamenSeleccionado.Text = grd.Selected.Rows[0].Cells["v_Name"].Value.ToString();
     }
 }
Exemplo n.º 9
0
        private void ultraGrid1_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            UltraGridRow row = this.ultraGrid1.ActiveRow;

            if (null != row)
            {
                this.txtPPaperNo.Text    = row.Cells["cnvcPaperNo"].Value.ToString();
                this.txtPMemberName.Text = row.Cells["cnvcMemberName"].Value.ToString();
                //this.txtPrepay.Text = row.Cells["cnnPrepay"].Value.ToString();
            }
        }
Exemplo n.º 10
0
        private void grdWorkers_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            if (grdWorkers.Selected.Rows.Count == 0)
            {
                return;
            }

            string personId = grdWorkers.Selected.Rows[0].Cells["v_PersonId"].Value.ToString();

            LoadDataPerson(personId);
        }
Exemplo n.º 11
0
 private void OnGridSelectionChanged(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
 {
     //Event handler for after selection changes
     try {
         if (this.IssueSelected != null)
         {
             this.IssueSelected(this, EventArgs.Empty);
         }
     }
     catch { }
 }
Exemplo n.º 12
0
        private void ultraGrid1_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            UltraGridRow row = this.ultraGrid1.ActiveRow;

            if (null != row)
            {
                //txtMemberCardNo.Text = row.Cells["cnvcMemberCardNo"].Value.ToString();
                txtMemberName.Text = row.Cells["cnvcMemberName"].Value.ToString();
                txtPaperNo.Text    = row.Cells["cnvcPaperNo"].Value.ToString();
                btnOK.Enabled      = true;
            }
        }
Exemplo n.º 13
0
 private void ugBTS_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
 {
     if (this.ugBTS.Selected.Rows.Count > 0)
     {
         uniqueIdent = ugBTS.Selected.Rows[0].Cells["uniqueIdent"].Value.ToString().Trim();
     }
     else
     {
         uniqueIdent = "";
     }
     txtUniqueIdentifier.Text = uniqueIdent;
     getSerialNum(uniqueIdent);
 }
Exemplo n.º 14
0
        private void ultraGridLotList_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            if (e.Type != typeof(Infragistics.Win.UltraWinGrid.UltraGridCell))
            {
                return;
            }

            UltraGridRow selectedRow = this.ultraGridLotList.ActiveRow;

            this.clickLotNo           = FormatHelper.PKCapitalFormat(selectedRow.Cells["LotNo"].Value.ToString());
            this.labelCurrentLot.Text = this.clickLotNo;

            InitReworkRcard();
        }
Exemplo n.º 15
0
        private void ultraGrid1_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            try
            {
                UltraGridRow row = this.ultraGrid1.ActiveRow;
                if (null != row)
                {
                    string    strPaperNo = row.Cells["cnvcPaperNo"].Value.ToString();
                    DataTable dtMember   = Helper.Query("select * from tbFMember where cnvcPaperNo = '" + strPaperNo + "'");
                    if (dtMember.Rows.Count == 0)
                    {
                        throw new BusinessException("非会员档案修改", "查询非会员出错!");
                    }

                    Member member = new Member(dtMember);

                    txtCommnets.Text       = member.cnvcComments;
                    txtEmail.Text          = member.cnvcEmail;
                    cmbEnterpriseType.Text = member.cnvcEnterpriseType;
                    txtLinkAddress.Text    = member.cnvcCompanyAddress;
                    txtCorporation.Text    = member.cnvcCorporation;
                    txtLinkman.Text        = member.cnvcLinkman;
                    txtLinkPhone.Text      = member.cnvcLinkPhone;
                    //txtMemberCardNo.Text              =  member.cnvcMemberCardNo    ;
                    //txtMemberPwd.Text                  =  member.cnvcMemberPwd       ;
                    txtMemberName.Text = member.cnvcMemberName;
                    txtPaperNo.Text    = member.cnvcPaperNo;
                    //cmdEndDate.Text                    =  member.cndEndDate          ;
                    txtMobileTelephone.Text  = member.cnvcMobileTelePhone;
                    txtPostalcode.Text       = member.cnvcPostalCode;
                    cmbSales.Text            = member.cnvcSales;
                    cmbHandleMan.Text        = member.cnvcHandleman;
                    txtHandleManPaperNo.Text = member.cnvcHandlemanPaperNo;
                    cmbTrade.Text            = member.cnvcTrade;
                    txtFax.Text             = member.cnvcFax;
                    cmbCustomerService.Text = member.cnvcCustomerService;

                    btnModify.Enabled = true;
                }
            }
            catch (BusinessException bex)
            {
                MessageBox.Show(this, bex.Message, bex.Type, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(this, ex.Message, "系统错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 16
0
        private void OnGridSelectionChanged(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            //Event handler for after selection changes
            this.Cursor = Cursors.WaitCursor;
            try {
                //Update the selected issue if not looking at another issue view
                this.mIssue = null;
                UltraGrid grid = (UltraGrid)sender;
                if (grid.Selected.Rows.Count > 0)
                {
                    switch (this.cboView.Text)
                    {
                    case "Search Results":
                        this.mIssue = CRGFactory.GetIssue(Convert.ToInt32(grid.Selected.Rows[0].Cells["ID"].Value));
                        break;

                    case "Issue History":
                        this.mIssue = CRGFactory.GetIssue(Convert.ToInt32(grid.Selected.Rows[0].Cells["ID"].Value));
                        break;

                    default:
                        this.mIssue  = CRGFactory.GetIssue(Convert.ToInt32(grid.Selected.Rows[0].Cells["ID"].Value));
                        this.mIssueH = this.mIssue;
                        break;
                    }
                    try {
                        //Unbold viewed issues/actions
                        grid.Selected.Rows[0].CellAppearance.FontData.Bold = DefaultableBoolean.False;
                        int      id  = Convert.ToInt32(grid.Selected.Rows[0].Cells["ID"].Value);
                        DateTime dt1 = Convert.ToDateTime(grid.Selected.Rows[0].Cells["LastActionCreated"].Value);
                        if (this.mOldItems.ContainsKey(id))
                        {
                            this.mOldItems[id] = dt1;
                        }
                        else
                        {
                            this.mOldItems.Add(id, dt1);
                        }
                    }
                    catch { }
                }
                if (this.IssueSelected != null)
                {
                    this.IssueSelected(this, EventArgs.Empty);
                }
            }
            catch { }
            finally { setUserServices(); this.Cursor = Cursors.Default; }
        }
Exemplo n.º 17
0
 private void OnGridSelectionChanged(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
 {
     //Event handler for after selection changes
     try {
         //Select grid and forward to update
         this.mType = null;
         if (this.grdComponents.Selected.Rows.Count > 0)
         {
             string typeID = this.grdComponents.Selected.Rows[0].Cells["TypeID"].Value.ToString();
             this.mType = MobileDevicesProxy.GetComponentType(typeID);
         }
     }
     catch (Exception ex) { App.ReportError(ex, false, Argix.Terminals.LogLevel.Warning); }
     finally { setServices(); }
 }
Exemplo n.º 18
0
        private void ultraGrid1_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            UltraGridRow row = this.ultraGrid1.ActiveRow;

            if (null != row)
            {
                string strCodeID = this.ultraGrid1.ActiveRow.Cells["cnvcCodeID"].Value.ToString();
                string strType   = this.ultraGrid1.ActiveRow.Cells["cnvcType"].Value.ToString();
                string strValue  = this.ultraGrid1.ActiveRow.Cells["cnvcValue"].Value.ToString();

                //cmbType.Tag = strCodeID;
                cmbType.SelectedIndex = cmbType.FindString(strType);
                txtValue.Text         = strValue;
            }
        }
Exemplo n.º 19
0
        private void ultraGrid1_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            UltraGridRow activeRow = this.ultraGrid1.ActiveRow;

            if (null != activeRow)
            {
                this.txtJobName2.Text = activeRow.Cells["cnvcJobName"].Value.ToString();
                this.txtJobName2.Tag  = activeRow.Cells["cnnJobID"].Value;
                this.txtJobTheme.Text = activeRow.Cells["cnvcJobTheme"].Value.ToString();
                cmbBegin.Text         = activeRow.Cells["cndBeginDate"].Value.ToString();
                cmbEnd.Text           = activeRow.Cells["cndEndDate"].Value.ToString();
                cmbBookBeginDate.Text = activeRow.Cells["cndBookBeginDate"].Value.ToString();
                cmbBookEndDate.Text   = activeRow.Cells["cndBookEndDate"].Value.ToString();
                btnOK.Enabled         = true;
            }
        }
Exemplo n.º 20
0
 private void OnTripSelectionChanged(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
 {
     //Event handler for change in trip selections
     try {
         //Clear reference to prior trip object
         this.mDestinationTrip = null;
         if (this.grdShipSchedule.Selected.Rows.Count > 0)
         {
             //Get a trip object for the selected trip record
             string id = this.grdShipSchedule.Selected.Rows[0].Cells["TripID"].Value.ToString();
             ShipScheduleDS.ShipScheduleMasterTableRow row = (ShipScheduleDS.ShipScheduleMasterTableRow) this.mShipScheduleDS.ShipScheduleMasterTable.Select("TripID='" + id + "'")[0];
             this.mDestinationTrip = new ShipScheduleTrip(row);
         }
     }
     catch (Exception ex) { App.ReportError(ex, false, LogLevel.Warning); }
     finally { OnValidateForm(null, null); }
 }
Exemplo n.º 21
0
        private void ultraGridEventList_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            if (e.Type != typeof(UltraGridRow))
            {
                return;
            }

            string downCode = this.ultraGridEventList.ActiveRow.Cells["EventCode"].Value.ToString();

            this.m_DownCodeSelected = downCode;

            DataCollectFacade dcf = new DataCollectFacade(this.DataProvider);

            object[] rcardList = dcf.GetDownRCardListByDownCode(downCode);
            this.BindRCardList(rcardList);
            this.ucLabelEditRCardEdit.TextFocus(true, true);
        }
Exemplo n.º 22
0
        private void grdData_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            foreach (UltraGridRow rowSelected in this.grdData.Selected.Rows)
            {
                btnEditar.Enabled       =
                    btnEliminar.Enabled =

                        (grdData.Selected.Rows.Count > 0);

                if (grdData.Selected.Rows.Count == 0)
                {
                    return;
                }

                _medicoId = grdData.Selected.Rows[0].Cells["v_MedicoId"].Value.ToString();
            }
        }
Exemplo n.º 23
0
        private void ultraGrid1_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            UltraGridRow row = this.ultraGrid1.ActiveRow;

            if (row != null)
            {
                if (row.Cells.Exists("cnvcMemberCardNo"))
                {
                    txtMemberCardNo.Text = row.Cells["cnvcMemberCardNo"].Value.ToString();
                }
                else
                {
                    txtMemberCardNo.Text = "";
                }
                txtMemberName.Text = row.Cells["cnvcMemberName"].Value.ToString();
                txtPaperNo.Text    = row.Cells["cnvcPaperNo"].Value.ToString();
            }
        }
Exemplo n.º 24
0
 private void OnGridSelectionChanged(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
 {
     //Event handler for after selection changes
     try {
         //Select grid and forward to update
         this.mEntry = null;
         if (this.grdSchedule.Selected.Rows.Count > 0)
         {
             if (!this.grdSchedule.Selected.Rows[0].IsGroupByRow)
             {
                 int ID = Convert.ToInt32(this.grdSchedule.Selected.Rows[0].Cells["ID"].Value);
                 this.mEntry = this.mSchedule.Item(ID);
             }
         }
     }
     catch (Exception) { }
     finally { setUserServices(); }
 }
        private void grdData_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            foreach (UltraGridRow rowSelected in this.grdData.Selected.Rows)
            {
                if (rowSelected.Band.Index.ToString() == "0")
                {
                    _DxFrecuenteId = grdData.Selected.Rows[0].Cells["v_DxFrecuenteId"].Value.ToString();

                    btnSeleccionarDx.Enabled = true;

                    return;
                }
                else
                {
                    btnSeleccionarDx.Enabled = false;
                }
            }
        }
Exemplo n.º 26
0
 private void grdList_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
 {
     try
     {
         if (grdList.ActiveCell != null)
         {
             UltraGridRow row = grdList.ActiveRow;
             if (row != null && row.Index >= 0)
             {
                 grdList.ActiveCell = null;
                 row.Selected       = true;
             }
         }
         ShowHideFunctionByData();
     }
     catch (Exception ex)
     {
         MessageBoxCommon.ShowException(ex);
     }
 }
Exemplo n.º 27
0
        private void grdDataService_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            btn7D.Enabled =
                btnOdontograma.Enabled                               =
                    btnHistoriaOcupacional.Enabled                   =
                        btnRadiologico.Enabled                       =
                            btnOsteomuscular.Enabled                 =
                                btnPruebaEsfuerzo.Enabled            =
                                    btnInformeRadiologicoOIT.Enabled =
                                        btnEstudioEKG.Enabled        =
                                            btnDermatologico.Enabled =
                                                btnEditarESO.Enabled =
                                                    btnImprimirCertificadoAptitud.Enabled       =
                                                        btnInformeMedicoTrabajador.Enabled      =
                                                            btnImprimirInformeMedicoEPS.Enabled =
                                                                btnAdminReportes.Enabled        =
                                                                    btnInforme312.Enabled       =
                                                                        btnInformeMusculoEsqueletico.Enabled          =
                                                                            btnInformeAlturaEstructural.Enabled       =
                                                                                btnInformePsicologico.Enabled         =
                                                                                    btnInformeOftalmo.Enabled         =
                                                                                        btnGenerarLiquidacion.Enabled =
                                                                                            btnInterconsulta.Enabled  =
                                                                                                btnTiempos.Enabled    =
                                                                                                    //btnImprimirFichaOcupacional.Enabled =
                                                                                                    (grdDataService.Selected.Rows.Count > 0);

            if (grdDataService.Selected.Rows.Count == 0)
            {
                return;
            }

            _serviceId  = grdDataService.Selected.Rows[0].Cells["v_ServiceId"].Value.ToString();
            _pacientId  = grdDataService.Selected.Rows[0].Cells["v_PersonId"].Value.ToString();
            _protocolId = grdDataService.Selected.Rows[0].Cells["v_ProtocolId"].Value.ToString();
            _customerOrganizationName = grdDataService.Selected.Rows[0].Cells["v_OrganizationName"].Value.ToString();
            _personFullName           = grdDataService.Selected.Rows[0].Cells["v_Pacient"].Value.ToString();
        }
Exemplo n.º 28
0
        private void ultraGrid1_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            UltraGridRow row = this.ultraGrid1.ActiveRow;

            if (null != row)
            {
                string strCodeID = this.ultraGrid1.ActiveRow.Cells["cnvcCodeID"].Value.ToString();
                string strType   = this.ultraGrid1.ActiveRow.Cells["cnvcType"].Value.ToString();
                string strValue  = this.ultraGrid1.ActiveRow.Cells["cnvcValue"].Value.ToString();

                //cmbType.Tag = strCodeID;
                cmbType.SelectedIndex = cmbType.FindString(strType);
                txtValue.Text         = strValue;

                ////////////////////////
                //string strSql = "select *  from tbMemberCode where  cnvcMemberName = '" + strValue + "'";
                //DataTable dtMemberCode = Helper.Query(strSql);
                //this.ultraGrid2.DataSource = dtMemberCode;//Login.constApp.dtMemberCode;
                //this.ultraGrid2.DataBind();
                cmbMember.SelectedIndex = cmbMember.FindString(strValue);
                //Helper.BindMemberCode(cmbMemberType,strType);
            }
        }
Exemplo n.º 29
0
        /// <summary>
        ///  adding rows in sub order grid after selection in order grid
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Orders_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            try
            {
                if (OrderUltraGrid.Selected.Rows.Count != 0)
                {
                    UltraGridRow row = this.OrderUltraGrid.Selected.Rows[0];

                    if (row.Cells["OrderStatus"].Value.ToString() == "Filled" || row.Cells["OrderStatus"].Value.ToString() == "PartiallyFilled")
                    {
                        SubOrdersUltraGrid.DataSource = PerformOperation.SelectData(row.Cells["CLOrderId"].Value.ToString());
                        SubOrdersUltraGrid.DataBind();
                    }
                    else
                    {
                        SubOrdersUltraGrid.DataSource = null;
                        SubOrdersUltraGrid.DataBind();
                    }
                }
            }
            catch (Exception)
            {
            }
        }
 private void grdCCs_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs args)
 {
     // ** Place Event Handling Code Here **
     grdCCs.DisplayLayout.PerformAutoResizeColumns(false, Infragistics.Win.UltraWinGrid.PerformAutoSizeType.VisibleRows);
 }