VB中如何在VSFlexGrid控件显示来自不同表中的数据

2025-04-14 12:21:12
推荐回答(3个)
回答1:

select a,b,'' as c,'' as d from table1 where time between .
select a,'' as b,c,'' as d from table2 where time between ...
select a,'' as b,'' as c,d from table3 where time between ...
以上每句均包含a,b,c,d四个字段
在vb中,使用a,b,c,d字段接收数据,显示在vsflexgrid控件的对应a,b,c,d列

回答2:

VB中的MSFlexGrid控件 中 Cell单元貌似不支持显示图片格式数据。我以前使用的 TrueDBGrid 控件是支持该功能的!

回答3:

不同表,可以用union语法