Hi Folks, first time on this forum so please be gentle.
I have an asp.net Formview with a RadGrid (rgTradeName) inside it.
rgTradeName has two RadGrids nested inside the edit form template (rgAPSummaryEdit & rgAPSummaryEditNew).
rgAPSummaryEditNew has a grid button column and is fires rgAPSummaryEditNew_ItemCommand when the user clicks on the button.
What I need to do is add the line from rgAPSummaryEditNew that the user has clicked on to the data that populates rgAPSummaryEdit. The hard part is finding rgAPSummaryEdit in the c# page-behind. So far rgAPSummaryEditNew_ItemCommand looks like this:
protected void rgAPSummaryEditNew_ItemCommand(object sender, GridCommandEventArgs e)
{
RadGrid rgTN = (RadGrid)fvLicenceSummary.FindControl("rgTradeName");
if (rgTN != null)
{
}
}
rgTN is not null when I run this, but I have no idea how to loop through rgTN to find rgAPSummaryEdit. I've tried quite a number of things, none of them worked.
Can anyone please tell me how to find this RadGrid nested in a RadGrid Nested in a FormView?
Thanks in advance.
I have an asp.net Formview with a RadGrid (rgTradeName) inside it.
rgTradeName has two RadGrids nested inside the edit form template (rgAPSummaryEdit & rgAPSummaryEditNew).
rgAPSummaryEditNew has a grid button column and is fires rgAPSummaryEditNew_ItemCommand when the user clicks on the button.
What I need to do is add the line from rgAPSummaryEditNew that the user has clicked on to the data that populates rgAPSummaryEdit. The hard part is finding rgAPSummaryEdit in the c# page-behind. So far rgAPSummaryEditNew_ItemCommand looks like this:
protected void rgAPSummaryEditNew_ItemCommand(object sender, GridCommandEventArgs e)
{
RadGrid rgTN = (RadGrid)fvLicenceSummary.FindControl("rgTradeName");
if (rgTN != null)
{
}
}
rgTN is not null when I run this, but I have no idea how to loop through rgTN to find rgAPSummaryEdit. I've tried quite a number of things, none of them worked.
Can anyone please tell me how to find this RadGrid nested in a RadGrid Nested in a FormView?
Thanks in advance.