protected void FixedAssetID_Init(object sender, EventArgs e) { string entCode = "", procCat = ""; entCode = CAPEXCIP.GetRowValues(CAPEXCIP.FocusedRowIndex, "EntCode").ToString(); procCat = CAPEXCIP.GetRowValues(CAPEXCIP.FocusedRowIndex, "ProcCat").ToString(); MRPClass.PrintString(entCode + " : " + procCat); DataTable dtRecord = GlobalClass.FixedAssetIDTable(entCode, procCat); ASPxComboBox combo = sender as ASPxComboBox; combo.DataSource = dtRecord; ListBoxColumn l_ValueField = new ListBoxColumn(); l_ValueField.FieldName = "ID"; l_ValueField.Caption = "CODE"; l_ValueField.Width = 125; combo.Columns.Add(l_ValueField); ListBoxColumn l_TextField = new ListBoxColumn(); l_TextField.FieldName = "NAME"; l_TextField.Width = 350; combo.Columns.Add(l_TextField); combo.ValueField = "ID"; combo.TextField = "ID"; combo.DataBind(); combo.Value = sFixedAssetID.ToString(); combo.Text = sFixedAssetID.ToString(); }
protected void CAPEXCIP_StartRowEditing(object sender, DevExpress.Web.Data.ASPxStartRowEditingEventArgs e) { bindCapexCIP = false; sFixedAssetID = CAPEXCIP.GetRowValues(CAPEXCIP.FocusedRowIndex, "CIPSIPNumber").ToString(); }