I have a dataset that has DBNull in certain columns, now when I write out this one to XML, I only get the columns as elements that do have data in it. However I do need also the empty colums as empty elements in the XML to can edit the field in InfoPath.
If the field isn't present in XML I can't edit it in InfoPath.
I have this code:
this.t_ARQUEOTableAdapter.Fill(this.tArqueo.T_ARQU EO);
string myForm = @"C:\Documents and Settings\Johny\My documents\Visual Studio 2005\Projects\Arqueo\IP_tArqueo\manifest.xsf";
System.IO.MemoryStream stream1 = new System.IO.MemoryStream();
tArqueo.WriteXml(stream1);
fcInfoPath.NewFromFormTemplate(myForm, stream1, XmlFormOpenMode.Default);
Where fcInfoPath is a Microsoft.Office.InfoPath.FormControl
How to do that ?
Regards