Hoe to print GridView data

Posted by Abhisekjani under JavaScript on 8/10/2012 | Points: 10 | Views : 1021 | Status : [Member] | Replies : 2
Hi....
In my web page two grid are there one is parent grid and one is child grid.
If i select parent grid any row means in the child grid the related data is showing.
I want to print the data.means first the parent selected grid data and then child grid all data,how to do it please help me out



Thanks,
Abhisek




Responses

Posted by: Jayakumars on: 9/29/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

do you need child gridview data print?

try this


foreach (GridViewRow row in gdview1.Rows)
{
Label lblid = (Label)row.FindControl("lblpropertyname");
Response.Write(lblid.Text);
}




Mark as Answer if its helpful to you

Abhisekjani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 9/29/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

Please mark as answer if it helpful to you.

Mark as Answer if its helpful to you

Abhisekjani, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response