This is a migrated thread and some comments may be shown as answers.

To retain the selected Gridview combobox column value.

5 Answers 308 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lalitha
Top achievements
Rank 1
Lalitha asked on 25 Jun 2008, 02:19 AM
Hi,
    I am using winform - gridview, 
    In this i used combobox column, i bounded  Itemname and Itemid  columns from the itemmaster table, Itemname as display member and Itemid as value member, i got Combobox with bounded the table values, but when i selected  the item name and swich to the next column it gets disapper. i need to retain the selected text in the combo text.
( Note: I am using empty Grid with no datasource, whenever I click the add new  button all the combo boxes will bound, when i  change the combo remaining columns gets the corrsponding values.)

Thanks & Regards,
S.Lalitha


5 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 27 Jun 2008, 11:03 AM
Hello Lalitha,

Sorry for the inconvenience and thank you for reporting this issue.

We have found issues related to ComboBoxColumn when it is used in an unbound column. It will be addressed for the Q2 2008 release planned for the end of next month.

Your Telerik points have been updated.

All the best,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
jerry
Top achievements
Rank 1
answered on 26 Feb 2010, 05:07 PM
I'm having the same problem with a gridview bound to a datatable.  When a new row gets added to my grid and it reloads the first columns combobox value disappears.  If I click it it shows the right value but if I click anywhere else it disappears again.  Is there a work around?
0
Julian Benkov
Telerik team
answered on 03 Mar 2010, 03:46 PM
Hi jerry,

I made tests for the case of a bound combobox column and I did not find any problems. Please check carefully your DataSource, DisplayMember and ValueMember properties.

If you continue having issues, please open a new support ticket and send us an example of your scenario. Thank you in advance.

Greetings,
Julian Benkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
kris
Top achievements
Rank 1
answered on 07 Jan 2011, 11:07 PM
I am using RadControls for WinForms Q2 2010 SP2.

I just changed from binding to a List<string> to a Dictionary<string, string> and am now experiencing the same issue. I need a work around or fix for this ASAP!

IDictionary<string, string> FilterValues = new Dictionary<string, string>();
...
comboValue.DataSource = new BindingSource(FilterValues, null);
comboValue.DisplayMember = "Value";
comboValue.ValueMember = "Key";

I didn't want to lose all the refactoring I did, so I decided for now to bind to
FilterValues.Keys
and had the same problem. For one, I can't bind to this as I get NULL reference error and have to use the above binding syntax.

Both the Dictionary and Dictionary.Keys return an ICollection<T> if that helps.
0
Alexander
Telerik team
answered on 12 Jan 2011, 03:24 PM
Hello Kris,

We have not experienced this issue before. Please note that the selected item of the RadGridView editor is restarted when you change the editor's DataSource. The Microsoft ComboBox control has the same behavior.

If you need further assistance, please open a support ticket and attach to it a sample project which demonstrates this issue. It will help me to investigate it further.

I am looking forward to your reply.

Best regards,
Alexander
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Tags
GridView
Asked by
Lalitha
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
jerry
Top achievements
Rank 1
kris
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or