DBGrid - adicionar campos em uma dbgrid |
Top Previous Next |
with DbGrid.Columns do begin Items[0].Width := 40; Items[0].Title.Caption := 'Código'; Items[1].Width := 250; Items[1].Title.Caption := 'Razao'; Items[2].Width := 50; Items[2].Title.Caption := 'Codigo'; Items[3].Width := 250; Items[3].Title.Caption := 'Historico'; Items[4].Width := 50; Items[4].Title.Caption := 'Valor'; state := csCustomized; // Não Obriga a Grid a Ter apenas os Campos do DataSet Add; Items[5].Width := 80; // Referente ao Item Que Nao esta no Data Set Items[5].Title.Caption := 'Numero/Nota'; end; |