Arsip: Reset StringGrid

more 14 years ago
wawan_inf
Tolongin dunk, apa kode untuk reset nilai yang sudah ada di stringgrid?
kalo di 'form Edit' kan tinggal 'Edit1.Clear;' trus kalo di StringGrid??

more 14 years ago
deLogic
sepertinya harus iterasi row dan col (cell) satu persatu, dan berikan nilai CELLS[Col, Row] := '';
CMIIW.

more 14 years ago
deLogic
maunya kok langsung minta kodenya, coba pelajari dulu help-nya.. :)
var
IndexCol, IndexRow,
MaxCol, MaxRow : Integer;
begin
MaxRow := StringGrid1.RowCount;
MaxCol := StringGrid1.ColCount;
for IndexRow := 0 to MaxRow -1 do
for IndexCol := 0 to MaxCol -1 do
StringGrid1.Cells[IndexCol, IndexRow] := '';
end;

more 14 years ago
wawan_inf
code yang di atas dah aku coba.. tapi yang hilang cuma isi stringgrid nya aja, gridnya masih ada...
klo ada buat ngilangin gridnya pake apa???
tolong lagi ya...
thank b4

more 14 years ago
deLogic
grid yg mana maksudnya...? garis2-nya atau header kolom dan baris?
kalo untuk ngilangin garis, set GridLineWidth dengan nol.
kalo untuk ngilangin header, set FixedCols dan FixedRows dengan nol.

more 14 years ago
juan81
sebagai tambahan untuk set jumlahnya baris ama jumlah kolommnya pake
rowcount ama colcount, pake header diatas pake fixedcols ama fixedrows

more 14 years ago
g06o
Property Rows dan Cols pada TStringGrid adalah bertipe TStrings.
Sehingga kita bisa menulis seperti ini:
var
I:Integer;
begin
for I:=0 to StringGrid1.RowCount-1 do
StringGrid1.Rows[I].Clear;
end;

more 14 years ago
wawan_inf
Terima kasih sudah mo bantu saya...
Trus terima kasih juga buat codingnya... hehehe... :D
more ...
- Pages:
- 1
- 2
reply |
Report Obsolete
Last Articles
- Project Group dalam Lazarus
- FastPlaz Database Explorer
- Release: FastPlaz Super Mom v0.12.22
- PascalClass #3: Web Development with Free Pascal
- Makna Pascal di Pascal Indonesia
- Kulgram : Instalasi Lazarus di Perangkat Berbasis ARM
- PascalClass #1: Analisa Database dan Machine Learning
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
- Mengenal OXYGENE – Pascal For .NET
- PascalTalk #5: UX: Research, Design and Engineer
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 4 months ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 4 months ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 5 months ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 5 months ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 5 months ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 5 months ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 1 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 8 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 8 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 8 years ago
Random Topic
- Printing dengan Assignfile????
by wati in Tip n Trik Pemrograman more 14 years ago - tanya tentang open file tanpa open dialog
by dpox in Network, Files, I/O & System more 13 years ago - [tanya]shellexecut
by Iansx in Hal umum tentang Pascal Indonesia more 13 years ago - form transparan
by nda1312 in Form Enhancement & Graphical Controls more 14 years ago - kirim instruksi antar exe
by Chocoloco in Tip n Trik Pemrograman more 13 years ago - Gimana bikin Marquee di form??
by ibiz in Enginering more 14 years ago - Database Connection
by aciang_007 in Hal umum tentang Pascal Indonesia more 12 years ago - Akses Ke Server dengan SQLyog error
by onsir in MySQL more 13 years ago - Database SQL Server ==> Delphi
by lois in MsSQL more 12 years ago - SARAN: View Posts Since Last Visit
by bangfauzan in Kritik & Saran more 14 years ago