Click here to Skip to main content
15,902,939 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Dynamically Setting Images on an ASP net site Pin
Reanalyse30-Jun-09 22:47
Reanalyse30-Jun-09 22:47 
Questionhow to upload my website with sql database 2005 to shared hosting space Pin
pbheri30-Jun-09 16:17
pbheri30-Jun-09 16:17 
AnswerRe: how to upload my website with sql database 2005 to shared hosting space Pin
Christian Graus30-Jun-09 18:30
protectorChristian Graus30-Jun-09 18:30 
QuestionCombobox help Pin
Jenfi30-Jun-09 9:59
Jenfi30-Jun-09 9:59 
AnswerRe: Combobox help Pin
Abhijit Jana30-Jun-09 10:11
professionalAbhijit Jana30-Jun-09 10:11 
Questionhow to publish the web site in asp.net 1.1 Pin
Jagz W30-Jun-09 8:54
professionalJagz W30-Jun-09 8:54 
AnswerRe: how to publish the web site in asp.net 1.1 Pin
Abhijit Jana30-Jun-09 10:20
professionalAbhijit Jana30-Jun-09 10:20 
Questionhighlight the selected row in the the Nested gridview. Pin
Member 465900130-Jun-09 7:54
Member 465900130-Jun-09 7:54 
I took advantage of some code I found on these forums and have created a form that has a nested gridview. The first gridview is bound using the SqlDataSource and on the OnRowBound event, bind data to the nested gridview. Then using JavaScript i hide the nested gridview until the user clicks on an image. The code I found for the javascript nested grid view is here. I then added code to highlight the selected row in the the first gridview. What i need to know is how would I go about adding code to make it so that I can do the same for the nested gridview?


Sample code
protected void Page_PreRenderComplete(object sender, System.EventArgs e)
{

//GridView nestedGrid = (GridView)GridView1.FindControl("GridView2");
foreach (GridViewRow y in GridView1.Rows)
{
y.Attributes.Add("onclick", "setSelected(this);");
}


}


function setSelected(selRow)
{
// alert(selRow.rowIndex);

var tbl = document.getElementById("GridView1");

for(var i = 1; i < tbl.rows.length; i++)
{

if(selRow.rowIndex == i)
{
selRow.style.fontWeight = "Bold";
selRow.style.backgroundColor = "Yellow";
}

}
}


But once i moved to child grid that time Click event of parent Grid cell does not fired so all highlited row of parent grid gone.

so how to solve it


Raghvendra

Raghvendra

AnswerCross Post : CP Member Please Ignore Pin
Abhijit Jana30-Jun-09 8:01
professionalAbhijit Jana30-Jun-09 8:01 
GeneralRe: Cross Post : CP Member Please Ignore Pin
Member 465900130-Jun-09 22:55
Member 465900130-Jun-09 22:55 
QuestionDeployment of SQL EXpress with VB.Net program troubles Pin
Cory Kimble30-Jun-09 7:33
Cory Kimble30-Jun-09 7:33 
AnswerRe: Deployment of SQL EXpress with VB.Net program troubles Pin
Niladri_Biswas30-Jun-09 7:40
Niladri_Biswas30-Jun-09 7:40 
AnswerRe: Deployment of SQL EXpress with VB.Net program troubles Pin
Abhijit Jana30-Jun-09 7:59
professionalAbhijit Jana30-Jun-09 7:59 
Questionconvert datatable arraylist Pin
dayakar_dn30-Jun-09 6:45
dayakar_dn30-Jun-09 6:45 
AnswerRe: convert datatable arraylist Pin
Not Active30-Jun-09 7:29
mentorNot Active30-Jun-09 7:29 
AnswerRe: convert datatable arraylist Pin
Niladri_Biswas30-Jun-09 7:30
Niladri_Biswas30-Jun-09 7:30 
AnswerRe: convert datatable arraylist Pin
Abhijit Jana30-Jun-09 10:22
professionalAbhijit Jana30-Jun-09 10:22 
QuestionHow to integrate webcam into Asp.net web application Any idea ? Pin
Rameez Raja30-Jun-09 6:42
Rameez Raja30-Jun-09 6:42 
AnswerRe: How to integrate webcam into Asp.net web application Any idea ? Pin
Abhijit Jana30-Jun-09 6:55
professionalAbhijit Jana30-Jun-09 6:55 
GeneralRe: How to integrate webcam into Asp.net web application Any idea ? Pin
Rameez Raja30-Jun-09 6:57
Rameez Raja30-Jun-09 6:57 
GeneralRe: How to integrate webcam into Asp.net web application Any idea ? Pin
Christian Graus30-Jun-09 10:27
protectorChristian Graus30-Jun-09 10:27 
AnswerCheck this article Pin
David Mujica30-Jun-09 7:03
David Mujica30-Jun-09 7:03 
GeneralRe: Check this article Pin
Rameez Raja30-Jun-09 7:08
Rameez Raja30-Jun-09 7:08 
QuestionCreating Charts/graphs on a webapge Pin
Sandeep Akhare30-Jun-09 4:07
Sandeep Akhare30-Jun-09 4:07 
AnswerRe: Creating Charts/graphs on a webapge Pin
Abhijit Jana30-Jun-09 4:23
professionalAbhijit Jana30-Jun-09 4:23 

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.