I am creating a gridview dynamically and assigning the selectedindexchanging event dynamically because i want click event for every row but it is unable to fire when I click on the griview row.Please suggest me how would I do.
gridAns.SelectedIndexChanging += new GridViewSelectEventHandler(gridAns_SelectedIndexChanging);
gridAns.SelectedIndexChanged += new EventHandler(gridAns_SelectedIndexChanged);
gridAns.RowDataBound += new GridViewRowEventHandler(gridAns_RowDataBound);
Have you enabled page index property of dynamic grid? or you paste your complete code here
Sorry i mean have you set property AllowPaging=true;
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)