Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My code is like below:-
my table is in .aspx<table id="tblInvs" runat="server">



and i added rows dynamically like:
C#
Protected Void Page_load()
{
                HtmlTableRow dtrFr63a = new HtmlTableRow();
                dtrFr63a.Attributes["style"] = "font-family: Calibri; border: 0px solid       black;font-size: 14px; font-style: normal; page-break-after:always";
                HtmlTableCell dtd223a = new HtmlTableCell();
                dtd223a.Align = "Center";
                dtd223a.Height = "30px";
                CheckBox chkInvs = new CheckBox();
                dtd223a.Controls.Add(chkInvs);

                HtmlTableCell dtd223b = new HtmlTableCell();
                dtd223b.Align = "left";
                dtd223b.Height = "30px";
                dtd223b.InnerText = Some Text;

                dtrFr63a.Cells.Add(dtd223a);
                dtrFr63a.Cells.Add(dtd223b);
                if (i % 2 == 0)
                {
                    dtrFr63a.Style.Add("background-color", "#f2f2f2");
                }
                else if (i % 2 == 1)
                {
                    dtrFr63a.Style.Add("background-color", "#C5C2C2");
                }
                tblInvs.Rows.Add(dtrFr63a);
                chkInvs.CheckedChanged += new EventHandler(CheckChanged);
}


Now i want write code for selecting row when check box is checked
i want add those selected row to one more table
give the solution

THANK U
Posted
Updated 4-Jul-14 1:09am
v2

1 solution

 
Share this answer
 
Comments
Member 10924493 4-Jul-14 9:04am    
Thanks but i want for HTML tables Not for Gridviews
my appln developed for Mobile.if itake Grid views the performance may slow,so that im using HTML Tables.Plz Give solutions for HTML TAbles

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