追 追命 Unregistered / Unconfirmed GUEST, unregistred user! 2000-07-18 #2 在dbgrid的oncellclick中编程,此事件有参数column,你所要的字符串为 column.field.text
J JohnsonGuo Unregistered / Unconfirmed GUEST, unregistred user! 2000-07-18 #3 procedure TForm1.DBGrid1CellClick(Column: TColumn); begin ... Table1.Fields.FieldByName(Column.FieldName).AsString ... end;
procedure TForm1.DBGrid1CellClick(Column: TColumn); begin ... Table1.Fields.FieldByName(Column.FieldName).AsString ... end;
M maming Unregistered / Unconfirmed GUEST, unregistred user! 2000-07-18 #4 Dbgrid.col与Dbgrid.row可以搞定吧 如下Dbgrid.cells[col,row];
追 追命 Unregistered / Unconfirmed GUEST, unregistred user! 2000-07-18 #6 我在Delphi4和Delphi5中都可以,你再试一试 你NEW一个工程,添加一个dbgrid,一个edit,一个table,一个datesource 将其关联,然后在dbgrid的oncellclick事件中编程, procedure TForm1.DBGrid1CellClick(Column: TColumn); begin edit1.text := column.Field.Text; end;
我在Delphi4和Delphi5中都可以,你再试一试 你NEW一个工程,添加一个dbgrid,一个edit,一个table,一个datesource 将其关联,然后在dbgrid的oncellclick事件中编程, procedure TForm1.DBGrid1CellClick(Column: TColumn); begin edit1.text := column.Field.Text; end;