我的问题在于将值显示到 DGV 控件的单元格中,例如:
MySQL 表:
ID - Name - Price - Type
1 Mouse Pad 2.85$ - a
2 Keyboard 10.50$ - a
3 Hard Disk 80.00$ - c
4 Web Cam 15.02$ - b
5 Printer 45.62$ - c
6 DVD Writer 20.00$ - b
我的 DataGridView 控件:
ID - Name - PriceA - PriceB - PriceC
我想显示结果过滤这些条件[VB.NET sintax]:
If SQLcolumn(Type) = a Then, show the price into PriceA into the DGV.
If SQLcolumn(Type) = b Then, show the price into PriceB into the DGV.
If SQLcolumn(Type) = c Then, show the price into PriceC into the DGV.