如何将所有用户输入数据保存到本地计算机中

如何将所有用户输入数据保存到本地计算机中

本文介绍了如何将所有用户输入数据保存到本地计算机中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 您好开发人员,PLZ我很乐意感谢您对上述主题的任何帮助/想法。我实际上正在研究一个wpf项目,我有一个包含文本框,datepicker和datagrid(textcolumns)的表单。所以我想将日期,文本框和数据网格行的用户输入一次保存到本地计算机中。我可以保存文本框和日期的数据,但我的BIG问题是将数据网格行中的数据保存到我的本地数据库中。 Plz我需要你的帮助因为我'我已经磕磕绊绊几周了,我需要进步。 谢谢。解决方案 尝试保存到xml DataTable dt = new DataTable(); string xmlString = string.Empty; using(System.IO .TextWriter writer = new System.IO.StringWriter()) { dt.WriteXml(writer); } Hello developers, plz I would gladly appreciate any help/ideas on the above subject. I'm actually working on a wpf project and I hv a form that contains textboxes, datepicker, and datagrid (textcolumns). So I would like to save user input on the date, textboxes and the datagrid rows at once into my local machine. I can save data on the textboxes and the date but my BIG problem is saving data from the datagrid rows into my local database.Plz I need your help coz I've bn stumbling on this for some weeks and I need to progress.Thanks. 解决方案 这篇关于如何将所有用户输入数据保存到本地计算机中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-21 17:41