Click here to Skip to main content
15,891,607 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Blogs open source(Urgent) Pin
Colin Angus Mackay27-Feb-09 0:08
Colin Angus Mackay27-Feb-09 0:08 
QuestionUnable to build project output group 'Content Files from <myproject> (Active)'</myproject> Pin
siva45526-Feb-09 20:49
siva45526-Feb-09 20:49 
AnswerRe: Unable to build project output group 'Content Files from (Active)' Pin
anilpal26-Feb-09 22:14
anilpal26-Feb-09 22:14 
AnswerRe: Unable to build project output group 'Content Files from (Active)' Pin
Vimalsoft(Pty) Ltd27-Feb-09 0:12
professionalVimalsoft(Pty) Ltd27-Feb-09 0:12 
QuestionShowing a part of an another web page inside iframe of a web page Pin
.NET- India 26-Feb-09 20:42
.NET- India 26-Feb-09 20:42 
AnswerRe: Showing a part of an another web page inside iframe of a web page Pin
Expert Coming26-Feb-09 20:56
Expert Coming26-Feb-09 20:56 
GeneralRe: Showing a part of an another web page inside iframe of a web page Pin
Greg Chelstowski26-Feb-09 21:12
Greg Chelstowski26-Feb-09 21:12 
Questioncopying rows from one gridview to another gridview.. Pin
scar_face26-Feb-09 20:42
scar_face26-Feb-09 20:42 
hi..i am using checkboxes to select the rows from one gridview and i want those rows to get copied into another gridview..
i tried using datatable and then creating columns and inserting into and then later binding..below is the code..
DataTable dt = new DataTable();
            DataRow dr;

            dt.Columns.Add(new DataColumn("userid"));
            dt.Columns.Add(new DataColumn("username"));
            dt.Columns.Add(new DataColumn("city"));

            foreach (GridViewRow gr in GridView1.Rows)
            {
                //if (((CheckBox)(gr.FindControl("chkbx"))).Checked == true)

                if (((CheckBox)gr.Cells[3].FindControl("chkbx")).Checked == true)
                {
                    dr = dt.NewRow();
                    dr["userid"] = gr.Cells[0].Text;
                    dr["username"] = gr.Cells[1].Text;
                    dr["city"] = gr.Cells[2].Text;
                    dt.Rows.Add(dr);
                }
            }
            GridView2.DataSource = dt;
            GridView2.DataBind();


plz help with the code..am stuck here..
thanks..

scarface

AnswerRe: copying rows from one gridview to another gridview.. Pin
Expert Coming26-Feb-09 20:55
Expert Coming26-Feb-09 20:55 
GeneralRe: copying rows from one gridview to another gridview.. Pin
scar_face26-Feb-09 21:30
scar_face26-Feb-09 21:30 
AnswerRe: copying rows from one gridview to another gridview.. Pin
anilpal26-Feb-09 21:48
anilpal26-Feb-09 21:48 
GeneralRe: copying rows from one gridview to another gridview.. Pin
scar_face26-Feb-09 21:55
scar_face26-Feb-09 21:55 
GeneralRe: copying rows from one gridview to another gridview.. Pin
scar_face26-Feb-09 21:57
scar_face26-Feb-09 21:57 
GeneralRe: copying rows from one gridview to another gridview.. Pin
anilpal26-Feb-09 22:05
anilpal26-Feb-09 22:05 
GeneralRe: copying rows from one gridview to another gridview.. Pin
scar_face26-Feb-09 22:13
scar_face26-Feb-09 22:13 
GeneralRe: copying rows from one gridview to another gridview.. Pin
anilpal26-Feb-09 22:18
anilpal26-Feb-09 22:18 
QuestionRe: copying rows from one gridview to another gridview.. Pin
scar_face26-Feb-09 22:27
scar_face26-Feb-09 22:27 
AnswerRe: copying rows from one gridview to another gridview.. Pin
keyur satyadev26-Feb-09 22:41
keyur satyadev26-Feb-09 22:41 
AnswerRe: copying rows from one gridview to another gridview.. Pin
anilpal26-Feb-09 22:42
anilpal26-Feb-09 22:42 
GeneralRe: copying rows from one gridview to another gridview.. Pin
scar_face26-Feb-09 23:01
scar_face26-Feb-09 23:01 
GeneralRe: copying rows from one gridview to another gridview.. Pin
anujbanka178426-Feb-09 23:12
anujbanka178426-Feb-09 23:12 
GeneralRe: copying rows from one gridview to another gridview.. Pin
scar_face26-Feb-09 23:16
scar_face26-Feb-09 23:16 
GeneralRe: copying rows from one gridview to another gridview.. Pin
keyur satyadev27-Feb-09 1:42
keyur satyadev27-Feb-09 1:42 
GeneralRe: copying rows from one gridview to another gridview.. Pin
scar_face1-Mar-09 6:42
scar_face1-Mar-09 6:42 
AnswerRe: copying rows from one gridview to another gridview.. Pin
Tomz_KV27-Feb-09 5:39
Tomz_KV27-Feb-09 5:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.