>>I have a web form with 8 panels on it.
>>1 of the panels has a datagrid on it, with edit and delete links on the rows.
>>When I click on the edit link the datagrid disappears. .....
>>Rick
>----------------------
>Rick,
>
>Clicking the Edit hyperlink will also cause a postback. The common cause of a Datagrid not being rendered is that the Datasource is not assigned or has no data. Check to see if the Datagrid is bound to the Datasource when the Edit postback occurs - it should not be unless you are also caching the Datasource and reloading it before the bind.
----------------------------
Keith,
Thank you for your comments. I went back and checked and sure enough, the datasource wasn't being assigned... it was over in a different routine which wasn't triggered unless I click on some of the other controls...
I moved it to me Page_Load and now things are better!
Now of course I have another question...
I'll mention it here to you but I'll really make it another thread...
The question is, The DataGrid edit mode is built with textboxes, but what I really need for some of my fields is DropDownList... How do I do that?
Thanks,
Rick
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only