gridview 列头自动适应宽度

Gridview gv=Gridcontrol.MainView as  Gridview;

gv.BestFitColumns();

原文地址:https://www.cnblogs.com/huzige/p/7729464.html