You must be logged in to reply to this topic.
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
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
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
You must be logged in to reply to this topic.
As a leading component vendor in the Microsoft Visual Studio Industry Partner program, ComponentOne has been providing the widest range of Microsoft Visual Studio components, IDE platform development tools, and applications for over 22 years. ComponentOne product lines encompass custom WinForms, ASP.NET, WPF, Silverlight, Mobile, and COM components, documentation tools, and Web Parts for Microsoft Office SharePoint Server and Windows SharePoint Services.
Contact ComponentOne: 1.800.858.2739 | Pittsburgh: 412.681.4343
©2013 ComponentOne LLC All Rights Reserved.
All product and company names herein may be trademarks of their respective owners.
ComponentOne holds a license under Patent No. 5,490,216 (which expires on September 21, 2013)
