while not query1.Eof do
begin
// count:=count +1;
// stringgrid1.rowscount := count+1;
stringgrid1.Cells[0,count]:=query1.fieldbyname('순번').asstring;
stringgrid1.Cells[1,count]:=query1.fieldbyname('제품명').asstring;
stringgrid1.Cells[2,count]:=query1.fieldbyname('고객명').asstring;
stringgrid1.Cells[3,count]:=query1.fieldbyname('검사수량').asstring;
stringgrid1.Cells[4,count]:=query1.fieldbyname('합격수량').asstring;
stringgrid1.Cells[5,count]:=query1.fieldbyname('불량수량').asstring;
stringgrid1.Cells[6,count]:=query1.fieldbyname('검사결과').asstring;
stringgrid1.Cells[7,count]:=query1.fieldbyname('조처결과').asstring;
// stringgrid1.Cells[8,count]:=query1.fieldbyname('검사일자).asstring;
stringgrid1.Cells[9,count]:=query1.fieldbyname('검사자').asstring;
query1.Next;
end;
헐 보시면 알겠지만여... 음 스트링 그리드에다가 쿼리 값을 집어넣어 볼려구 함당..^^
그런디 카운트를 어떻게 사용하나여...... 갈켜주심 감솨하겠습니당....^^
그럼 고수님들의 고견 기댕김당...^^
Qury1.Open; 을 했으면
If recordCount > 0 Then Begin
J := 1;
With StringGrid1 Do Begin
StringGrid1.RowCount := Query1.RecordCount + 1; // 타이틀부분이 필요
While Not Query1.Eof Do Begin
For i := 0 To Query1.FieldCount - 1 Do begin
StringGrid1.Cell[i, j] := FieldS[i].AsString;
end;
Query1.Next;
Inc(j);
end;
end;
end;