mayankdvd1 0 Newbie Poster

My gridview selected index changed is not firing properly.

I have put the following code in row bound event of the gridview

e.Row.Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(GridView1, "Select$" + e.Row.RowIndex.ToString()));

For first time selected index changed is firing properly but when i clicked the row in gridview 2nd time i am getting the error : Microsoft JScript runtime error: Object expected

Please help me out

Thanks in advance