How to bind gridview inside a repeater?

You have fire repeater's ItemDataBound event. In which you have to find gridview then bind it as following: If e.Item. ItemType = ListItemType.

Item OrElse e.Item. ItemType = ListItemType. AlternatingItem Then Dim grd As GridView = TryCast(e.Item.

FindControl("rep_DataSimilarToBacthid"), GridView) grd. DataSource = dt grd.DataBind() end if.

You have fire repeater's ItemDataBound event. In which you have to find gridview then bind it as following:- If e.Item. ItemType = ListItemType.

Item OrElse e.Item. ItemType = ListItemType. AlternatingItem Then Dim grd As GridView = TryCast(e.Item.

FindControl("rep_DataSimilarToBacthid"), GridView) grd. DataSource = dt grd.DataBind() end if.

If your entity whitch is bounded to the repeate have necessare data source (list of entities for example) just specify to the DataSource of the GridView with this property. '> where GridDataSource is collection of items. Also you can define the method witch will specify the datasource at the codebehind and call it: Page.

Aspx '> CodeBehind. Cs public List GetGridViewData(Object repeaterObject) { // define what you need here } Also, check the posts: Binding gridview inside a repeater Adding Gridview nested in Repeater in ASP. NET 2.0 Repeater within Gridview in C# ASP.NET 2.0 - the concept the same in your case Bind Repeater's DataRow to GridView's DataSource.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions