Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
935
How to Add new Rows Dynamically using WebDatagrid ?
posted

Hi How can i Add new rows using webdatagrid..

I was successfull doing it in winforms 

foreach(DataRow a in dt.Rows)

{

datagrid.Rows.Add("text1","text2");

}

but on asp.net its not working 

 

foreach(DataRow a in dt.Rows)

{

 

wdg1.Rows.Add(//Controldatarecord row);

}

How to do it? Thanks