We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ShowAddNewRow with ComboBox column

Thread ID:





92850 Feb 8,2010 09:19 PM UTC Feb 11,2010 12:13 PM UTC WPF 3
Tags: GridControl
Francois Madore
Asked On February 8, 2010 09:19 PM UTC


I have a GridDataControl in which I display the add new row and I have a column which is a ComboBox fed with an ObjectDataProvider. The grid works well but I'd like to allow the user to add new rows with the ShowAddNewRow.

How to display the column as a ComboBox in the AddNewRow to allow the user to choose one of the listed elements in the ComboBox?

SelectedValue="{Binding Path=CellBoundValue.Id,Mode=TwoWay}"
ItemsSource="{Binding Source={StaticResource allPeriodes}, Path=Periodes}" SelectedValuePath="Periode.Id">

Mohamed Suhaib Fahad A. [Syncfusion]
Replied On February 9, 2010 11:58 AM UTC

Hi Francois,

We need to do some source changes to enable this, Can you please create a Direct Trac incident with the Forum title as its "Title".


Francois Madore
Replied On February 9, 2010 02:43 PM UTC

Ok, I'll add it in Direct Track, is it long to have an update.

Meanwhile, I've added a ToString function on my object and the AddRow displays my object "correctly" but when I choose an item, it seems to be invalid. Does the grid view sees it as a String cause ToString has been called? I thought the ToString is just used for graphic representatiuon but the selected item is an instance of my custom object... right?

Mohamed Suhaib Fahad A. [Syncfusion]
Replied On February 11, 2010 12:13 PM UTC

Hi Francois,

Yes, internally Grid would convert the CellValue object with ToString() call, this would be specific to different CellTypes, Say if you have a Static / TextBox CellType, the ToString() will convert that to a string and render it.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon