Hi,
I'm trying to bind an xmldatasource to the webgrid during runtime because the xml data that gets assigned to the datasource is the result of a few webservice calls. I tried a few grid events (init, InitializeDataSource) and on the page load event with mixed results.
I am able to get the webservice result, assign it to the datasource and bind the datasource to the grid, however, groupby, column moving do not work, the click event causes object exceptions and the updaterow event doesn't fire when I update a cell.
The strange thing is that if I were to create an xml file, set the xmldatasource's datafile property to this file and set the datasource of the grid to the xmldatasource all in design time, I have absolutely no issues.
Here is the snippet of code that I'm using to bind if it helps.
XmlDataSource1.DataFile = "ArcherWSResult.xml";XmlDataSource1.TransformFile = "~/TextFile3.xsl";XmlDataSource1.DataBind();UltraWebGrid1.DataSourceID = "XmlDataSource1";UltraWebGrid1.DataBind();