By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,882 Members | 2,453 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,882 IT Pros & Developers. It's quick & easy.

Edit null fields in a InfoPath form (Windows application)

P: 1
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();
fcInfoPath.NewFromFormTemplate(myForm, stream1, XmlFormOpenMode.Default);

Where fcInfoPath is a Microsoft.Office.InfoPath.FormControl

How to do that ?

Jun 19 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.