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

[Solved] Specify Binding in UI

1 Answer 95 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 10 Sep 2010, 05:26 PM
I have two columns that I want to display but the table as 10 columns.  I set AutoGenerateColumns to false and I would like to bind the two colums to the specific columns through the UI, is this possible?

I see the code in the tutorial I would rather just select the field or type the field in the UI property.

' Only display the "Description" column, not the "Products" column

gvMain.AutoGenerateColumns = False

gvMain.Columns.Add(

 

New GridViewDataColumn() With { _

 

.DataMemberBinding =

 

New Binding("Description"), .Header = "Category Description"})

 



1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 13 Sep 2010, 07:14 AM
Hi,

 All you need to set is DataMemberBinding to desired Binding for GridViewDataColumn. Please check our demos for more info. 

Greetings,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Michael
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or