在应用程序的GUI中隐藏表格列

在应用程序的GUI中隐藏表格列

问题描述:

如何使用数据库中不应在C#Windows窗体应用程序中出现的字段?

How to use a field in database, that should not be present in C# windows form application?

数据库列出现在应用程序的GUI中,然后要么不显示它,要么制定SQL select语句,以便不要选择不想出现的列.

If you don''t want the content of a database column to appear in the GUI of your application then you either just don''t display it or you formulate your SQL select statement so the column you don''t want to appear is not selected.

SELECT column1, column2, column4, column6
FROM myTable
WHERE ...



假设您有一个名为myTable的表,其中的列名为column1到column6.
在上面的select语句中,您将省略column3和column5.

那应该有帮助!


干杯,


曼弗雷德(Manfred)



Suppose you had a table myTable with columns named column1 through column6.
With the select statement above you''d omit column3 and column5.

That should help!


Cheers,


Manfred