datagrid.dataresource=dataview ;
datagridcolumn怎么用
if you are talking about datagrid in winform, take a look at
5.9 How do I hide a column?
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q708q
if it is for webform, try
DataGrid.Columns[n].Visible = false
it only works on template columns, if you are using auto-generated columns, you have to override the behavior in ItemCreated or ItemDataBound event handler or create a DataTable with the chosen columns
你好
你可以设置datagrid的tablestyle属性