C#windows appliation [英] C# windows appliation

查看:69
本文介绍了C#windows appliation的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在windows应用程序中有两个gridview,我必须检查两个gridview中是否存在两个常见ID,然后两个gridview中的特定行变为绿色。如果只有一个id存在则会变为红色。任何人都知道如何我是新手。请帮助

I have two gridview in windows application and i have to check that if two common id are present in two gridview then the particular row in both gridview become green .If only one id is present then it become red.Anyone have idea how to do it.I am new to it please help

推荐答案

试试这个



网格视图中的搜索值 [ ^ ]


using foreach循环,从不同变量中的datagrids中获取值,然后匹配它们,如果它们匹配,那么gridview中特定ID的颜色将变为绿色,否则为红色。
using foreach loop, get the values from both the datagrids in different variables and then match them, if they match then the color of that particular ID in both gridview will become green otherwise red.


这篇关于C#windows appliation的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆