I do have a database containing 10 columns, and in the first Gridview I m showing only couple of records with limited data. And what I want to do is selecting that record (gridview1) and show all data in a different Gridview below (Gridview2). The gridview2 will pop up after selecting row on gridview1.
Anyone knows how to make it right? I appreciate any help!
Thanks!
Im working on WebDeveloper 2010 asp.net c#
Loading
Soft CornerPosted Mar 29, 2011, 5:37 AM
1. Add Select Column in GridView
2. Generate SelectedIndexChanged event for GridView
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
// Get the currently selected row using the SelectedRow property.
GridViewRow row = GridView1.SelectedRow;
// Get Cell Value using row.Cells[index].Text
// & then Populate your second gridView from here
}