how to add button in gridview dynamically
问题 i am creating gridview dynamically... Now i want to add some buttons in that and also add their relative rowCommand Events. please help me to do this. this is how I create GridView's dynamically in my code for (int i = 0; i < dtEmployees.Rows.Count; i++) { TableRow tr = new TableRow(); TableCell tc = new TableCell(); GridView gv = new GridView(); gv.ID = "gv" + dtTasks.Rows[i]["TaskID"].ToString() + dtEmployees.Rows[i]["EmpID"].ToString(); DataTable dt = dtTasks.Clone(); foreach (DataRow dr