多个表的单元格验证DGV以动态方式加载 [英] Cell validation DGV for mulitple table loaded dyanmically
问题描述
你好
假设第一个表中有4列,分别是id,ename,ph,addr,email.我需要针对正则表达式验证DGV的每个单元格,也需要在用户加载第二个表时(其中包含说订单号,产品,数量)进行验证.当用户更改DGV中的单元格数据时,应验证此表.也就是说,表格是动态加载到DGV的,因此需要验证相应的DGV单元.使用组合框选择将表加载到DGV.
并假设数据库中有10个表,每个表具有不同的列名和不同的列数.一个表将在特定时间加载.如何验证所有这些表的单元格.请帮忙.
我希望了解我的问题.
谢谢您
Hello
Suppose there are 4 columns in first table say, id, ename, ph, addr, email. I need to validate each cell of DGV against a regular expression and also when user loads second table which contians say orderid, product, quantity. This table should be validated when user changes cell data in DGV. i.e tables are loaded dynamically to DGV the corresponding DGV cells needs to be validated. The tables are loaded to DGV using combo box selection.
And assume there are 10 tables in a database and each have different column name and different number of columns. One table will be loaded at a particular time. How to validate the cells of all these tables. Please help.
I hope understand my problem.
Thank you
推荐答案
http://msdn .microsoft.com/en-us/library/cc668224.aspx [ ^ ]
这篇关于多个表的单元格验证DGV以动态方式加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!