Hello,
In wpf sfDatgrid the GridMultiColumnDropDownList does exist.
It's very nice because you select a name for example and in the background it binds the phonenumber from that name.
Does
Hi Frank,
SfDataGrid does not contain the support for the GridMultiColumnDropDownList
column in WinForms. However, your requirement to select a name for example, and
in the background it binds the phone number from that name in SfDataGrid can be
achieved using GridComboBoxColumn. Refer to the below code snippet,
this.sfDataGrid1.Columns.Add(new GridComboBoxColumn() { MappingName = "CustomerID", HeaderText = "Name", // Display the Name that equals of PhoneNumber DisplayMember = "Name", // Bind the phonenumber value ValueMember = "PhoneNumber", //Assign data source to SfDataGrid DataSource = orderInfo.ShipCityDetails }); |
UG Link: https://help.syncfusion.com/windowsforms/datagrid/columntypes#gridcomboboxcolumn
Find the sample demo in the attachment.
Regards,
Vijayarasan S
If this post is helpful, please consider Accepting it as the solution so that
other members can locate it more quickly.
Hello Vijayarasan,
I've made a grid with these two columns.
One normal column and one GridComboBoxColumn.
When I debug the app and select a BuySideFirm( Just a name) then the first columns gets populated with the BuySideLei (as expected) but the GridComboBoxColumn changes from the BuySideFirm to the BuySideLei
Is that expected ? I'd like to keep the BuySideFirm in the GridComboBoxColumn
this.sfDataGrid1.Columns.Add(new GridNumericColumn() { MappingName = "BuySideLei", HeaderText = "BuySideLei" });
sfDataGrid1.Columns.Add(new GridComboBoxColumn()
{
MinimumWidth= 250,
MappingName = "BuySideLei", // Lei
HeaderText = "BuySide",
DisplayMember = "BuySideFirm", // Display the firm that equals the Lei
ValueMember = "BuySideLei", // Bind the Lei
DataSource = buysideCollection.BuySideList,
});
Frank,
We are analyzing your requirement of "First column value displayed in
second column when same mapping name defined for both columns" and update
you with further details on May 16, 2023.
Frank,
We have created a bug report for the reported issue. We will fix this issue and
include it in our upcoming Weekly NuGet release scheduled for May 30, 2023.
We will update the feedback link for this bug Tomorrow (May 17, 2023).
We appreciate your patience until then.
Frank,
We have created a bug report for the reported issue “Column value is not
updated properly while using the same mapping name for more than one column”.
We will fix this issue and include it in our upcoming Weekly NuGet release
scheduled for May 30, 2023.
You can track the status of this report through the following feedback link,
Feedback Link: https://www.syncfusion.com/feedback/43757/column-value-is-not-updated-properly-while-using-the-same-mapping-name-for-more
Note: The provided feedback link is private, and you need to login to view this
feedback.
We appreciate your patience until then.
thank you so much!
Frank,
Sorry for the inconvenience caused.
We are unable to include the fix for this issue in our NuGet
Release which is released today as promised. We will fix this issue and include
it in our NuGet release which is scheduled for June 13, 2023. We will let you
know once it is released.
We appreciate your patience and understanding.
ok understood.
best regards!
Frank,
We would like to let you know that
Essential Studio Weekly NuGet packages (v21.2.10) has been
published in nuget.org with the fix for the issue “Column
value is not updated properly while using the same mapping name for more than
one column”. Please let us know if you have any concerns in this.