我想把列隐藏在打印页面中。
我想隐藏ID列。下面是我正在使用的代码,我已经声明了this.dataGridView.Columns["ID"].Visible = false,但是ID列仍然是可见的。PrintPreview = new PrintPreviewDialog();
printDocument1.DefaultPageSettings.Landscape = t
在我的Windows Form上,我有一个绑定到BindingSource的DataGridView组件。BindingSource是EntityFramework对象的对象数据源。有时,我的DataBridView中的列会被更新。有时所有属性都被添加为列,但现在它也删除了我的所有列。所以我丢失了我所有的设置。// when the System.Windows.Forms.<e