Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

ASPxGridView - How to bind GridViewDataComboBoxColumn Edit Form editor at runtime

$
0
0

This example illustrates how to provide GridViewDataComboBoxColumn with data and set its properties at runtime.Please note: the ComboBoxProperties.ValueType should be set according to the Data Type Mappings (ADO.NET) table.

Question Comments

Added By: KMirza at: 4/11/2013 2:07:43 PM    

Can I get the code to add/modify row? I want to avoid this message "Data modifications are not allowed in the online example.".

Added By: Marion (DevExpress Support) at: 4/12/2013 1:25:13 AM    

@Mirza
Simply define the datasource Update command and comment the following line:
throw new Exception("Data modifications are not allowed in the online example.");

Added By: Andrew Werner 1 at: 7/31/2013 9:15:42 AM    

Why is it also necessary to include the "Category Name" column in the dsCombo Box and when binding the aspx combo box (as text field)? What if we only want to display the Category ID in the drop down?

Added By: Andrew Werner 1 at: 7/31/2013 10:00:19 AM    

I ended up doing something very similar to this solution, but since I wanted to display the number field in my combobox (not any text or title), i'm using two columns. but the two columns are the same; they are both the number field. except I call one "title" and one "text".

Added By: Marion (DevExpress Support) at: 7/31/2013 11:38:23 PM    

@Andrew,
It is the most popular solution to show a text field in the ASPxComboBox. However, you can show any data you wish.

Added By: Rob Bronstein at: 8/19/2013 6:32:15 PM    

I was expecting to see a list of items in the dropdownedit control ?

Added By: Marion (DevExpress Support) at: 8/19/2013 11:08:23 PM    

@ Rob,
Yes.

Added By: Gregory Lange 1 at: 2/5/2015 8:07:48 AM    

Can this also be used if you are just using the built in grid view defaults for batch editing?  I don't want to have any code on the html side i rather it all be done from the code behind.

Added By: Anthony (DevExpress Support) at: 2/5/2015 11:39:15 AM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T205642: ASPxGridView - Using E3591 for batch editing. This ticket is currently in our processing queue. Our team will address it soon.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>