简体   繁体   English

C#Datagridview列值比较

[英]C# Datagridview column values compare

i have a datagridview contains many parameters for example: column 1 12 100 2349 3600 7000 我有一个datagridview包含许多参数,例如:列1 12 100 2349 3600 7000

my question is how do i create some loop to compare between values (from start or from end of the column) in order to find if the difference between them is less than 100. 我的问题是我如何创建一些循环以比较值(从列的开头还是结尾),以便确定它们之间的差是否小于100。

Comparing datagridview values are one of important subject of its field. 比较datagridview值是其领域的重要主题之一。 You can compare them with their specific row and column. 您可以将它们与它们的特定行和列进行比较。

First of all you need to determine which rows and columns are you going to compare. 首先,您需要确定要比较的行和列。

You can Read this article for comparing datagridview values. 您可以阅读本文以比较datagridview值。

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

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