2
Answers

GridView - populate columns

Photo of Kristina

Kristina

15y
4.5k
1
Hi, I have a GridView that is populated in Page_Load: gvOmbudUtanAnmodan.DataSource = gvOmbudUtanAnmodan.DataBind(); AnvandareComponent.GetOmbudUtanAnmodan(); ("GetOmbudUtanAnmodan()" is a function in which i filter a with a datatable and returns a .) The following columns are populated by BoundField controls: GroupID - Name - City That was easy... Now, I have one column that is called Date that i cannot get from this funtion. So i guess this column needs to be populated in gvOmbudUtanAnmodan_RowDataBind.. This Date i need to get from another in which GroupID is an item! The GroupID need to match for each row. How do I populate this last column so that the correct Date is displayed for correct GroupID??? Thanks!

Answers (2)