FlexGrid for WinForms

Selected Value of all Rows in a Column with combobox editor

  •  mzeezee said 1 year ago:

    Hi!

    I am pretty new using flexgrid in my project. I have attached a combobox with one of columns via editor property and accepting data from user. The combobox is displaying lets say "Product Description". Now on SAVE Button click I am saving all filled rows in database thru looping. Issue is that I don’t know how to get selected value (Product ID) of each row in combobox.

    [Coding Sample (not working)]

    grdSale.Cols(2).Editor = C1Combo1

    For i As Integer = 1 To grdSale.Rows.Count – 1
    Dim combo As C1.Win.C1List.C1Combo = grdSale.Cols(2).Editor
    ItemId = combo.SelectedValue
    ItemPrice = grdSale(i, 3)
    ItemQty = grdSale(i, 4)
    Next

  •  Ashish Jindal16p said 1 year ago:

    Hello,

    Since, you are binding the column with the ProductDescription but want to retrieve its ID, you may use DataMap concept for same. For more details on it, kindly refer to the following documentation link:

    http://helpcentral.componentone.com/nethelp/c1flexgrid/#!Documents/valuemappedlists.htm

    Let me know if you have any questions.

    Regards
    Ashish

    Answer
  •  mzeezee said 1 year ago:

    Dear Ashish

    Thanks a lot for your reply. I will look into it and let you know the result, hope it will resolve my issue

    Best Regards

    Zee

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.