Oct 27, 2015

How to add a button dynamically to a grid view?

Button myButton = newButton();  
myButton.Text = "Hai";  
myGrid.Controls.Add(myButton);   

How to find a control inside a GridView?


Button btnTest = (Button) myGrid.Rows[0].Cells[1].Controls[1].FindControl("myButton "); 

No comments:

Post a Comment