This is a migrated thread and some comments may be shown as answers.

Some kind of relation

2 Answers 71 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Simeon
Top achievements
Rank 1
Simeon asked on 19 Apr 2012, 09:58 PM
Hi there,
I'm new in the Open Access ORM and testing the base functionalities. In my first steps i need for your assistance:
I'm binding a table to a RadGridView, so everything is fine, i can edit the values in the grid and send it back in to database trough .SaveChanges() method.
Next wich appeared in my mind is case on wich i want to change a column in the gridview with a combobox column with values from another related table. For example if i have two tables:
Products {
id(int)
ProductName(varchar)
OriginCountryId(int)
} and
Countries {
id(int)
CountryName(varchar)
}
I want to change the OriginCountryId values in Products GridView/Database table trough select a CountryName from combobox in the grid. I know that there is a way to do this with standard coding but wondering is there a way in wich ORM/LINQ gives a better solution.
Regards,
Simeon

2 Answers, 1 is accepted

Sort by
0
Viktor Zhivkov
Telerik team
answered on 20 Apr 2012, 03:41 PM
Hi Simeon,

Thank you for your interest in our product!

In order to assist you I would like to ask you which RadGridView control are you using? Telerik provides WPF, Silverlight and Windows Forms controls with the same name and they require a bit different approach in order to achieve your desired result.

I would like to invite you to our dedicated customer support system that you can use during your OpenAccess trial period.
 
All the best,
Viktor Zhivkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the OpenAccess ORM, subscribe to their blog feed now.
0
Simeon
Top achievements
Rank 1
answered on 21 Apr 2012, 09:37 AM
Hi Viktor,
Thank you for your quick replay. According to your suggestion i will send my question as a support ticket. Just for information my question was related to Winforms RadGridView.
Rigards,
Simeon
Tags
Getting Started
Asked by
Simeon
Top achievements
Rank 1
Answers by
Viktor Zhivkov
Telerik team
Simeon
Top achievements
Rank 1
Share this question
or