Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to call a Gridview inside the repeater item command
C#
 protected void rpt1_ItemCommand(object source, RepeaterCommandEventArgs e)
   {


   Repeater rptdates = new Repeater();
   rptdates = (Repeater)rpt1.Items[e.Item.ItemIndex].FindControl("rptLevel2");

   DropDownList ddllist = new DropDownList();
   LinkButton LnkLevel2 = new LinkButton();

  for (int i = 0; i < rptdates.Items.Count; i++)
     {
ddllist = (DropDownList)rptdates.Items[i].FindControl("ddlDate");
BatchDates = BatchDates + ddllist.SelectedValue.ToString().Trim() + " +";
                   dates += ddllist.SelectedItem.Text.ToString() + ",";

    LnkLevel2 = (LinkButton)rptdates.Items[i].FindControl("lnkLevel2");
                   PKGMinorCode += LnkLevel2.CommandArgument.ToString().Trim() + ",";


         In that place i want to write the gridview code
    }

   }

how to call a gridview in repeater itemcommand.

for that how can i do in asp.net using c#.
Posted
Updated 13-Jul-15 22:26pm
v2
Comments
DamithSL 14-Jul-15 4:32am    
what exactly you want to do? what do you mean by call a gridview?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900