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

[Solved] How to use two columns in a dropdown

3 Answers 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Anto (DLL Version : 2008.3.1314.35) asked on 17 Apr 2009, 07:19 AM
Hi All

I have a grid with a some fields in that i have a field productID

While edit mode, I have to take it from a seperate table

where productName should be displayed in the dropdown and while inserting the productID should be saved.

So two columns should be used (productID,productName) but user sees only productName.

Thank you in advance

-Anto

3 Answers, 1 is accepted

Sort by
0
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
answered on 17 Apr 2009, 07:22 AM
The insert ad update command should show the productName from a table called [Product] and the productID should be saved in another table called [Page].

-Anto
0
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
answered on 17 Apr 2009, 07:59 AM
Hi All

Thank you
I got the answer.

-Anto

0
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
answered on 17 Apr 2009, 07:59 AM
Hi

The Answer is :

<

telerik:GridDropDownColumn UniqueName="ProductName" HeaderText="Product Name" DataField="ProductID"

 

 

DataSourceID="SqlDataSourceProduct" AllowFiltering="true" AllowSorting="true"

 

 

ListTextField="ProductName" ListValueField="ProductID">

 


-Anto

Tags
Grid
Asked by
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Answers by
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Share this question
or