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. Image for the cookie policy date

Does GridMultiColumnDropDownList exist in winforms sfDatagrid

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 


9 Replies

VS Vijayarasan Sivanandham Syncfusion Team May 5, 2023 01:52 PM UTC

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.


Attachment: SfDataGridDemo_664a750d.zip


FR Frank May 11, 2023 10:17 AM UTC

column1.jpg 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,
});


VS Vijayarasan Sivanandham Syncfusion Team May 12, 2023 03:19 PM UTC

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.



VS Vijayarasan Sivanandham Syncfusion Team May 16, 2023 02:40 PM UTC

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.



VS Vijayarasan Sivanandham Syncfusion Team May 17, 2023 03:13 PM UTC

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.



FR Frank May 18, 2023 06:51 AM UTC

thank you so much!



DM Dhanasekar Mohanraj Syncfusion Team May 30, 2023 02:10 PM UTC

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.



FR Frank May 30, 2023 05:47 PM UTC

ok understood.

best regards!



VS Vijayarasan Sivanandham Syncfusion Team June 13, 2023 11:50 AM UTC

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.


Loader.
Up arrow icon