1. 程式人生 > >delphi載入utf8文字,dbgrid設定列寬度

delphi載入utf8文字,dbgrid設定列寬度

slTranslate.LoadFromFile(getlocal('actioncn.md'),TEncoding.UTF8);

  gridRecord.Columns.Items[0].Width:=30;
  gridRecord.Columns.Items[1].Width:=80;
  gridRecord.Columns.Items[2].Width:=150;
  gridRecord.Columns.Items[3].Width:=80;
  gridRecord.Columns.Items[4].Width:=150;
  gridRecord.Columns