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.
Unfortunately, activation email could not send to your email. Please try again.

ShowAddNewRow with ComboBox column

Thread ID:





92850 Feb 8,2010 04:19 PM Feb 11,2010 07:13 AM WPF 3
Tags: GridControl
Francois Madore
Asked On February 8, 2010 04:19 PM


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 06:58 AM

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 09:43 AM

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 07:13 AM

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.

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.