|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
GridView XmlDataSourcethe datacontrolid of the gridview control to the id of the xmldatasource control and everything looks fine. The xml looks somthing like below ... <FolderReferences> <FolderReference type="Number" value="12345"/> </FolderReferences> I also have two text boxes and a button on the webform so that the user can add additional folder references to the grid. They simply type the values in the two text boxes and click the add button. On the postback i build another <FolderReference> node and append it to any existing reference in the xml and ther set the xmldatasource.data property to the newly created xml. Unfortunatly i never see the newly added row. I know the xml is right. I can see the new xml structure with the two <FolderReference> nodes, but I only see what was originally in the gridview control. It won't re-bind itself to my new structure that is provide. Any suggestions? Ben I wonder if the xmldatasource is caching. Test by turning it off and
running your scenario again. myXds.EnableCaching = False Regards. Andy ps. I never thought about using xmldatasource with gridview. Ahh. It works! Thanks Andy!
<CaffieneR***@gmail.com> wrote in message Show quoteHide quote news:1143879598.601160.318600@v46g2000cwv.googlegroups.com... >I wonder if the xmldatasource is caching. Test by turning it off and > running your scenario again. > myXds.EnableCaching = False > > Regards. > Andy > > ps. I never thought about using xmldatasource with gridview. >
Problem with User Control and unset references to controls within
error in adding user controls at runtime Fitting a table inside an ASP Panel error using .NET CrystalReportViewer (.NET 1.1 VS.NET 2003) Gridview PostBack Problems Re: Binding two fields in the DataNavigateUrlFormatString WebControl rendering in frontpage 2003 - Migrating from Visual Studio 2003 to 2005 GridView Height InputAttributes in RowCreated (gridview) Enabling/Disabling a Tab in a TabStrip |
|||||||||||||||||||||||