A
Amir
Hi all
I have only a Datagrid and a submit button on a form.
I use 2 template columns and some bounded columns in my grid too.
I just want to process Datagrid's items in a for loop in the event handler
of Button click.
My loop look like this:
for(int i=0;i<dg.Items.Count;i++)
{
....
}
but "dg.Items.Count" after postback is ZERO when I debug the code.
It's not zero in Page_load method after postback.
I have only a Datagrid and a submit button on a form.
I use 2 template columns and some bounded columns in my grid too.
I just want to process Datagrid's items in a for loop in the event handler
of Button click.
My loop look like this:
for(int i=0;i<dg.Items.Count;i++)
{
....
}
but "dg.Items.Count" after postback is ZERO when I debug the code.
It's not zero in Page_load method after postback.