Hi team
i have two gridviews and a button.
in first gridview there are some rows if select that row and trigger the buuton then i should get all the details of that row.
ex:
Department------>Button----->then i should get the details of the deapartment.
should we require to create a storeprocedure or any other idea.. pls help me
Loading
CrishPosted Dec 27, 2010, 5:47 AM
try below code
protected void btnAdd_click(object sender, EventArgs e)
{
Label lblLabelName = (Label)sender;
string lblLabelName= lblLabelName.Text;
TableCell tb = (TableCell)lblLabelName.Parent;
DataGridViewItem di = (DataGridViewItem )tb.Parent;
Label lblProductID = (Label)di.FindControl("lblProductID");
}
sandeep kodepakaPosted Dec 27, 2010, 11:50 PM
still i'm not able to solve the problem can u pls help me.
you know the requirement right,
Suthish NairPosted Dec 27, 2010, 3:59 PM
Your query resolved?
sandeep kodepakaPosted Dec 27, 2010, 6:08 AM
The button is not for adding, it has to retrive all the records of that particular row.in to another gridview by using a button