Click here to Skip to main content
15,893,161 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionpreserving state of the selected checkboxes Pin
248912817-Oct-08 5:44
248912817-Oct-08 5:44 
AnswerRe: preserving state of the selected checkboxes Pin
ToddHileHoffer17-Oct-08 6:05
ToddHileHoffer17-Oct-08 6:05 
GeneralRe: preserving state of the selected checkboxes Pin
248912817-Oct-08 21:54
248912817-Oct-08 21:54 
QuestionConnecting Lotus Notes through ASP.net Pin
blakshmi17-Oct-08 3:20
blakshmi17-Oct-08 3:20 
Questionusing FindControl in inner gridview Pin
needhi_p17-Oct-08 3:01
needhi_p17-Oct-08 3:01 
AnswerRe: using FindControl in inner gridview Pin
ToddHileHoffer17-Oct-08 5:35
ToddHileHoffer17-Oct-08 5:35 
GeneralRe: using FindControl in inner gridview Pin
needhi_p17-Oct-08 19:20
needhi_p17-Oct-08 19:20 
GeneralRe: using FindControl in inner gridview Pin
John Gathogo17-Oct-08 20:13
John Gathogo17-Oct-08 20:13 

What you are trying to do does not come through clearly to me but one thing I noted is that your RowDataBound event handlers do not have a correct second argument. You have: protected void grdmaster_DataBound(object sender, EventArgs e) in place of protected void grdmaster_DataBound(object sender, GridViewRowEventArgs e). With this syntax you can easily invoke the FindControl as follows:

protected void grdmaster_DataBound(object sender, GridViewRowEventArgs e)
{
    GridView grdchild = new GridView();
    grdchild = (GridView)e.Row.Cells[0].FindControl("grdchild ");

}


That way, you would be able to find your child gridview. Notice the use of Cells[i] in the code snippet. The controls recide in the cells (where rows and columns intersect) not on the row itself. The assumption in the snippet below is that your child grid in on first column - Cells[0]. You should modify this suitably.

GeneralRe: using FindControl in inner gridview Pin
John Gathogo17-Oct-08 20:21
John Gathogo17-Oct-08 20:21 
GeneralRe: using FindControl in inner gridview Pin
needhi_p19-Oct-08 18:59
needhi_p19-Oct-08 18:59 
GeneralRe: using FindControl in inner gridview Pin
John Gathogo20-Oct-08 21:53
John Gathogo20-Oct-08 21:53 
QuestionJava script problem Pin
raghvendrapanda17-Oct-08 2:52
raghvendrapanda17-Oct-08 2:52 
AnswerRe: Java script problem Pin
Abhijit Jana17-Oct-08 2:57
professionalAbhijit Jana17-Oct-08 2:57 
GeneralRe: Java script problem Pin
raghvendrapanda17-Oct-08 19:29
raghvendrapanda17-Oct-08 19:29 
AnswerRe: Java script problem Pin
puviyarasan.j20-Oct-08 3:40
puviyarasan.j20-Oct-08 3:40 
QuestionWIA with 2003 Server Pin
Wandera17-Oct-08 2:36
Wandera17-Oct-08 2:36 
QuestionCommand event for dynamic created LinkButton Pin
trilokharry17-Oct-08 1:27
trilokharry17-Oct-08 1:27 
AnswerRe: Command event for dynamic created LinkButton Pin
Abhijit Jana17-Oct-08 1:35
professionalAbhijit Jana17-Oct-08 1:35 
QuestionMail setting error Pin
VijayVishwakarma17-Oct-08 1:19
VijayVishwakarma17-Oct-08 1:19 
AnswerRe: Mail setting error Pin
sumit703417-Oct-08 1:25
sumit703417-Oct-08 1:25 
GeneralRe: Mail setting error Pin
VijayVishwakarma17-Oct-08 1:50
VijayVishwakarma17-Oct-08 1:50 
Questionbreak statement in asp.net Pin
Kissy1617-Oct-08 1:18
Kissy1617-Oct-08 1:18 
AnswerRe: break statement in asp.net Pin
sumit703417-Oct-08 1:28
sumit703417-Oct-08 1:28 
GeneralRe: break statement in asp.net Pin
Kissy1617-Oct-08 1:55
Kissy1617-Oct-08 1:55 
AnswerRe: break statement in asp.net Pin
Abhijit Jana17-Oct-08 1:31
professionalAbhijit Jana17-Oct-08 1:31 

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.