[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webcontrols

Using postback and dynamic controls

jagriti

1/23/2003 5:31:00 AM

Hi
I have explicitly set the datagrid's enableviewstate to
true.
But it is the datagrid that is not accessible.
I create this datagrid dynamically, how can its state be
retrieved? Any links would be appreciated.
Thanks
Jagriti


>-----Original Message-----
>Hi
>Check the EnableViewState property of the DataGrid, it
>should be set to true so that u keep the chek for
postback.
>
>
>
>>-----Original Message-----
>>I have an ASP.NET form that contains a datagrid with
>>checkboxes. Before populating the datagrid I make a
check
>>for if not isPostBack then populate the datagrid.
>>
>>I have declared and created the datagrid variable as a
>>member variable. I use this datagrid in one method for
>>datagrid population and in some other method I want to
>>use the same datagrid and update few rows in its
>>datatables. But the reference of tables of this datagrid
>>is not appearing in other method.
>>When I remove the not is postback check the datatables
>are
>>accessible from other method too.
>>
>>I need to keep the postback check and also update
>>datatable rows in othe method.
>>
>>Could anyone let me know what properties etc needs to be
>>set for this???
>>
>>
>>.
>>