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

Databinding question.

4 Answers 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jose Mejia
Top achievements
Rank 1
Jose Mejia asked on 14 Feb 2011, 11:31 AM

Hello! I have following code:

this.systemPointsGridView.MasterTemplate.DataSource = this.systemTableBindingSource;
...
this.systemTableBindingSource.DataMember = "SystemTable";
this.systemTableBindingSource.DataSource = this.projectDataSet;
...

projectDataSet is filling somewhere and then in order the results to be displayed
I have to write:
systemTableBindingSource.DataSource = projectDataSet;

So, the question is why do I have to reassign dataset to BindingSource datasource property? I suppose that it should be done automatically, or there should be method that I must call on binding source in order to populate control with data.

It seems that I missed something in databinding mechanism...

Thanks in advance.

4 Answers, 1 is accepted

Sort by
0
Jose Mejia
Top achievements
Rank 1
answered on 15 Feb 2011, 06:25 PM
Anyone?
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 15 Feb 2011, 09:01 PM
Hello,

the databinding mechanism for RadgridView for datasets and bindingsource is the same as per the Microsoft implementation. Please have a look at the Telerik documentation here on databinding. If you are still having issues though, do let me know
Richard
0
Jose Mejia
Top achievements
Rank 1
answered on 16 Feb 2011, 01:36 PM
Hello, Richard!

Thank you for your reply.
It seems that I misunderstood smth.
0
Richard Slade
Top achievements
Rank 2
answered on 16 Feb 2011, 01:49 PM
No problem. Let me know if you have any other questions
Richard
Tags
GridView
Asked by
Jose Mejia
Top achievements
Rank 1
Answers by
Jose Mejia
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Share this question
or