简体   繁体   English

如何清除 LINQ 查询、windows 表格?

[英]How can I Clear LINQ query, windows form?

I have been working for Desktop Application Using windows form, I have been passing data between two form firm from data grid view than when the user clicks on selected row open a new form that has some controls and populate the data on it,我一直在使用 windows 表单为桌面应用程序工作,我一直在从数据网格视图在两个表单公司之间传递数据,而不是当用户单击所选行时打开一个具有一些控件并在其上填充数据的新表单,

the problem every time the data come to the same row that populates the first time.每次数据到达第一次填充的同一行时都会出现问题。

'''' var model = productservices.getbyId(new Guid(frmOrder.instance.productDGv.CurrentRow.Cell["ProductId"].Value.Tostring()));'''' '''' var model = productservices.getbyId(new Guid(frmOrder.instance.productDGv.CurrentRow.Cell["ProductId"].Value.Tostring()));''''

this my query every time try to open get the same data and need to clear it when user close the form or what should I DO>>>.>这是我的查询每次尝试打开获取相同的数据并需要在用户关闭表单时清除它或者我应该做什么>>>。>

Thanks to all谢谢大家

I Find My Error and like to share it with all.我发现了我的错误并愿意与所有人分享。

Just I call the query in the wrong place, I modified the order of procedure then it works fine and with the right way.只是我在错误的地方调用了查询,我修改了程序的顺序,然后它以正确的方式工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM