
Protected void ASPxGridView1_CustomUnboundColumnData(object sender, ASPxGridViewColumnDataEventArgs e)ĭecimal price = (decimal)e. Public void AddError(Dictionary errors, GridViewColumn column, string errorText) GridViewDataColumn dataColumn = column as GridViewDataColumn ĪddError(e.Errors,, "PRODUCTCODE should not be null") Protected void ASPxGridView1_RowValidating(object sender, e)įoreach (GridViewColumn column in ) String updatedBy = e.NewValues = null ? "" : e.NewValues.ToString() Ĭreated = to_date('", selected)

String update = e.NewValues = null ? () : e.NewValues.ToString() String createdBy = e.NewValues = null ? "" : e.NewValues.ToString()

String created = e.NewValues = null ? () : e.NewValues.ToString() String pricefixed = e.NewValues.ToString() String description = e.NewValues.ToString()

String productCode = e.NewValues.ToString() Int productTypeId = Convert.ToInt32(e.NewValues.ToString()) Int hotleId = Convert.ToInt32(e.NewValues.ToString()) Int selectID = Convert.ToInt32(e.Keys.ToString()) Protected void ASPxGridView1_RowUpdating(object sender, e) String sql = "select id,description from web_producttypes" Ĭol.PropertiesComboBox.TextField = "DESCRIPTION" String sql = "select id,name from hotels" Ĭol.PropertiesComboBox.DataSource = db.GetDataTable(sql) Ĭol.PropertiesComboBox.ValueField = "ID" Ĭol.PropertiesComboBox.TextField = "NAME" GridViewDataComboBoxColumn col = ASPxGridView1.Columns as GridViewDataComboBoxColumn Web_producttypes c on a.producttypeid=c.id" String sql = a.id,a.hotelid,a.producttypeid,Ī.updated_by,b.name as HotelName,c.descriptionįrom web_products a inner join hotels b on a.hotelid=b.id inner join Devexpress Gridviewdatacomboboxcolumn Demo Luminator Holding Lp Icloud Generator V1.2. Protected void AddProducts_Click(object sender, EventArgs e) Protected void Page_Load(object sender, EventArgs e) Please make certain, that the type of the ValueField and the type of the column to which the ComboBoxColumn is bound(column.FieldName) is the same.Public partial class WebProductsDemo : .Page
