Arsip: membatasi DBGrid

 
user image
more 7 years ago

wati

Halo suhu delphi....gimana caranya membatasi pengisian data pada DBgrid..misalnya maximal 10 baris untuk mengisi data lewat dbgrid...bila sudah mencapai 10 baris maka akan keluar warning gitu..thanks
user image
more 7 years ago

p2bf

pake record count aja..
user image
more 7 years ago

wati

gimana kira kira procedure bro?thanks
user image
more 7 years ago

Goen

Sis, Blokirnya di event pada TDataset-nya aja. Misal, di OnBeforeInsert:
procedure TFormxyz.TablexyzBeforeInsert(DataSet: TDataSet);
begin
  if Dataset.RecordCount >= 10 then Abort;
end;
more ...
  • Pages:
  • 1
Share to
Local Business Directory, Search Engine Submission & SEO Tools FreeWebSubmission.com SonicRun.com