private void ProsView_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) { if (ProsView.RowCount > 0) { txtRemarks.EditValue = ProsView.GetFocusedRowCellValue("Remarks").ToString(); } }
private void ProspectiveView() { panelClient.Controls.Clear(); EnquiryId = Convert.ToInt32(CommFun.IsNullCheck(ProsView.GetFocusedRowCellValue("LeadId"), CommFun.datatypes.vartypenumeric)); m_sLeadName = CommFun.IsNullCheck(ProsView.GetFocusedRowCellValue("Name"), CommFun.datatypes.vartypestring).ToString(); if (EnquiryId == 0 && m_sLeadName == "") { return; } frmProsDetails frm = new frmProsDetails() { TopLevel = false, FormBorderStyle = System.Windows.Forms.FormBorderStyle.None, Dock = DockStyle.Fill }; panelClient.Controls.Add(frm); frm.Execute(EnquiryId, m_sLeadName); }