protected void GoodsComboBox_OnSelectedIndexChanged(object sender, EventArgs e) { var goodsComboBox = sender as ASPxComboBox; var pseudoUnitComboBox = StockOperationGrid.FindEditRowCellTemplateControl(StockOperationGrid.Columns["PseudoUnitName"] as GridViewDataComboBoxColumn, "PseudoUnitComboBox") as ASPxComboBox; pseudoUnitComboBox.SelectedIndex = -1; pseudoUnitComboBox.DataSource = new PseudoUnit().ListPseudoUnitsByGoodsID(Convert.ToInt32(goodsComboBox.Value)); pseudoUnitComboBox.DataBind(); }
private object GetStockOperationComboBoxColumnValue(string ColumnFieldName, string ComboBoxID) { var comboBox = StockOperationGrid.FindEditRowCellTemplateControl((StockOperationGrid.Columns[ColumnFieldName] as GridViewDataColumn), ComboBoxID) as ASPxComboBox; return(comboBox.Value); }