How to fix gridview selected index changed event not working when i useing update panel?
please help

How to fix gridview selected index changed event not working when i useing update panel?
please help

Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Oct 5, 2023, 8:01 AM EDT
Add this in your Code behind
protected void GridView1_Distributor_RowCreated(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onmouseover", "this.originalstyle=this.style.backgroundColor;this.style.backgroundColor='#FF9955';"); e.Row.Attributes.Add("style", "cursor:pointer;"); e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=this.originalstyle;"); e.Row.ToolTip = "Click to select row"; e.Row.Attributes["onclick"] = this.Page.ClientScript.GetPostBackClientHyperlink(this.grd_Distributor, "Select$" + e.Row.RowIndex); } }