Gridview has auto-generated column.I wanted to select the perticular row,so added one button in gridview.In rowbound event,i want like if(btnshow.click){//color code for that row}.Does it right way.Button is not visible in this event(when I am making if condition).
Gridview has auto-generated column.I wanted to select the perticular row,so added one button in
Share
Use the
RowCommandevent. Row index is thene.CommandArgument. Read this MSDN help for how to do this.Edit: answer to your comment — by using the BackColor property: