H Hexi Unregistered / Unconfirmed GUEST, unregistred user! 1999-11-25 #2 var T:TDataSet; T:=DBGrid1.DataSource.DataSet; T.FieldByName('Field1').as... T.FieldByName('Field2').as... ....
var T:TDataSet; T:=DBGrid1.DataSource.DataSet; T.FieldByName('Field1').as... T.FieldByName('Field2').as... ....
L lhxu Unregistered / Unconfirmed GUEST, unregistred user! 1999-11-25 #3 for i:=1 to table1.field.countdo edit1.text:=table1.fieldbyname('fieldname').value //大概如此,没有细调
M menxin Unregistered / Unconfirmed GUEST, unregistred user! 1999-11-25 #4 想怎么返回呢? 如果用columns,可以这样 DBGrid1.Columns.Field
L Liu JZX Unregistered / Unconfirmed GUEST, unregistred user! 1999-11-26 #5 procedure TForm1.DBGrid1CellClick(Column: TColumn); begin showmessage(dbgrid1.SelectedField.AsString); end;
procedure TForm1.DBGrid1CellClick(Column: TColumn); begin showmessage(dbgrid1.SelectedField.AsString); end;
W www Unregistered / Unconfirmed GUEST, unregistred user! 1999-11-26 #6 dbgrid1.Fields[index].AsString;