0
A
답변
1
TColumn
클래스에는 Name
속성이 없습니다. TComponent
(TColumn
->TCollectionItem
->TPersistent
->TObject
)을 상속하지 않으며 상위 클래스는 Name
속성을 추가하지 않습니다.
가 어쨌든, 당신은 단순히 Columns
수집의 Add
메소드를 호출하여 TDBGrid
에 새 열을 추가 할 수 있습니다
var
Col : TColumn;
begin
Col := DBGrid1.Columns.Add;
//then you can set its properties as your needs
Col.Title.Caption := 'MyNewColumn';
end;
그래 내가 분명히 그것을 당신이 – Johnny
@Johnny을 alot을 감사 : 천만에요, 문제가 해결되면 [답변에 동의하십시오] (https://meta.stackexchange.com/a/5235)를 입력하십시오. – ExDev