Some tips to set DevExpress GridView
Disable Focused Cell
gv.OptionsSelection.EnableAppearanceFocusedCell = false;
Center Column Header or Cell
gv.Columns[i].AppearanceHeader.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
gv.Columns[i].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
Set Column DisplayFormat
gv.Columns[i].DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
gv.Columns[i].DisplayFormat.FormatString = "n";
Written by 小叮噹文青
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ui
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#