protected void cmbVehicleCategory_Init(object sender, EventArgs e) { BootstrapComboBox cmb = sender as BootstrapComboBox; cmb.DataSource = MasterDataEntity.GetMasterDataVehicleCategory_CMB(); cmb.DataBind(); if (!gv.IsNewRowEditing) { cmb.Value = Convert.ToString(gv.GetRowValues(gv.EditingRowVisibleIndex, "VehicleCategory_ID")); } }