I am creating a grid view dynamically and everything works perfect. But i can't seem to add this property in my code behind when i create the DataGrid. Is there something that i need to do in order to allow this?
DataGrid DG = new DataGrid();
DG.ID = "test";
// This doesn't allow me to add this
DG.AutoGenerateEditButton = true;
DG.DataSource = tbl;
DG.DataBind();
I can see that option when i add a grid view to my aspx page, but in code behind i can't seem to add it.