Arsip: Menampilkan lebih dari satu kolom

 
user image
more 16 years ago

zieborg

Gridnya jangan pake yang standar delphi, pake infopower, dijamain langsung bisa...he..he..
user image
more 16 years ago

awonk

infopower download alamatnya apa??? free ga??? thnx ya....
user image
more 16 years ago

zieborg

infopower beli lagi.. maunya kayak itu kan? ini kalo mau manual ini kodenya :

procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
  DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
if (gdFocused in State) then
  begin
    if (Column.Field.FieldName = DBLookupComboBox1.DataField) then
    with DBLookupComboBox1 do
    begin
      Left := Rect.Left + DBGrid1.Left + 2;
      Top := Rect.Top + DBGrid1.Top + 2;
      Width := Rect.Right - Rect.Left;
      Width := Rect.Right - Rect.Left;
      Height := Rect.Bottom - Rect.Top;
      Visible := True;
    end;
  end
end;
procedure TForm1.DBGrid1ColExit(Sender: TObject);
begin
if DBGrid1.SelectedField.FieldName = DBLookupComboBox1.DataField then
    DBLookupComboBox1.Visible := False
end;
procedure TForm1.DBGrid1KeyPress(Sender: TObject; var Key: Char);
begin
if (key = Chr(9)) then Exit;
  if (DBGrid1.SelectedField.FieldName = DBLookupComboBox1.DataField) then
  begin
    DBLookupComboBox1.SetFocus;
    SendMessage(DBLookupComboBox1.Handle, WM_Char, word(Key), 0);
  end
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
  dblookupcombobox1.visible := false;
  dblookupcombobox1.DropDownWidth := 250;
  dblookupcombobox1.Color := clMoneyGreen;
end;
koomponen yang diperlukan selain grid juga dblookupcombobox, yang nantinya masuk ke cell-nya grid. good luck!
user image
more 16 years ago

awonk

betullllll sekaliiii.....oce dech.. ntar saya coba dulu ya..... makasih ya ilmunya.... trims
user image
more 16 years ago

awonk

wah....wah.... codingnya betul sekali tuhhhh...... udah saya coba... hasilnya oke bosss.... maksih boss ya...... Salam
user image
more 16 years ago

awonk

wah....wah.... codingnya betul sekali tuhhhh...... udah saya coba... hasilnya oke bosss.... maksih boss ya...... Salam
user image
more 15 years ago

guardian_4n631

maaf... saya mau tanya nih saya udah coba kode tersebut ,memang muncul combobox, tapi kenapa ketika saya menambah record ,dan ingin memilih melalui combo, malah kembali ke record pertama.., tapi terkadang tidak ... kenapa combonya suka ngaco gitu ..........????
user image
more 15 years ago

kheava

menuju TKP
more ...
  • Pages:
  • 1
  • 2
Share to

Random Topic

Local Business Directory, Search Engine Submission & SEO Tools FreeWebSubmission.com SonicRun.com