1.去掉GridView表头上的
"Drag a column header here to group by that column"
点击 Run Designer=>找到 optionView=>将 ShowGroupPanel 设置为false。
2.Griview中自带了搜索功能
点击 Run Designer=>找到 optionsfind=> 将alwaysvisible 设置为 true。
3.当数据源发生变化时,如何更改所绑定的值:
gridView1 =
new
DevExpress.XtraGrid.Views.Grid.GridView(gridControl1);
gridControl1.MainView = gridView1;
gridView1.OptionsView.ShowGroupPanel =
false
gridView1.OptionsFind.AlwaysVisible =
true
;
gridControl1.DataSource = dt;