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

adding lines to GridView

1 Answer 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Igor
Top achievements
Rank 1
Igor asked on 21 Oct 2008, 09:12 AM

I construct the list of 3 my objects and attach it to the GridView. As a result all 3 lines shows the first item: "aa". DataBound of all 3 lines is OK but display does not work OK. Here is my code below:


eeList =

new List<MedCheckEntry>();

 

 

MedCheckEntry i1 = new MedCheckEntry();

 

i1.ReferenceNo =

"aa";

 

eeList.Add(i1);

 

MedCheckEntry i2 = new MedCheckEntry();

 

i2.ReferenceNo =

"bbb";

 

eeList.Add(i2);

 

MedCheckEntry i3 = new MedCheckEntry();

 

i3.ReferenceNo =

"ccc";

 

eeList.Add(i3);

gridView.MasterGridViewTemplate.DataSource = eeList;

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 21 Oct 2008, 03:29 PM
Hi Igor,

Thank you for contacting us.

I have attached a sample application using your code and everything seems ok. What is different from your project? What is the visual issue you see? Thank you in advance.

 

All the best,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Igor
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or