根据其他Datagridview表值过滤Datagridview [英] Filter Datagridview based on other Datagridview table value

查看:60
本文介绍了根据其他Datagridview表值过滤Datagridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这样的事情可能吗?我有2个datagridview表连接到2个不同的sqladapters和数据集,两者都有totalminutes值。我正在尝试过滤第二个数据网格中与第一个数据网格单元格值具有相同未知值的行。

Is something like this possible? I have 2 datagridview table connected to 2 different sqladapters and datasets, both have values in totalminutes. I'm trying to filter the row from my 2nd datagrid that has the same unknown value as the 1st datagrid cell value.

Dim com1r2 As String = "SELECT * from BITD WHERE time >= '% $DataGridView1.Rows(1).Cells(2).Value $%' "

推荐答案

DataGridView1。行(1).Cells(2).Value
DataGridView1.Rows(1).Cells(2).Value


%'


这篇关于根据其他Datagridview表值过滤Datagridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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