Author: sheraz_aries | Posted on: 1/22/2010 9:13:48 AM | Views : 338

Hi,
I am trying to bind the gererist list type to GridView control but for some reason its just displaying "Member"(Object name) rather then the actuakl content inside object.Any Idea why?
Below i have decleared a List Type Member:
List<Member> MemberObj = new List<Member>();
And then after getting records from db add them in MemberObj

while (_Dr.Read()) { MemberObj.Add(new Member((int)_Dr.GetValue(0),(string)_Dr.GetValue(1),(string)_Dr.GetValue(2),(DateTime)_Dr.GetValue(3))); }
And the Below trying to bind with gridview:
GridView1.DataSource = ObjectDataSource1.SelectMethod; GridView1.AutoGenerateColumns = true; DataBind();




...

Go to the complete details ...