Z
zyt_1978
Unregistered / Unconfirmed
GUEST, unregistred user!
搜寻TdxDBGrid控件某列的值,可以用如下代码,但是新控件TcxDBGrid怎样替换下面的代码<br> //搜寻<br> with TFrminputstring.Create(Self) do<br> begin<br> labPrompt.Caption := DBGrid1.FocusedField.DisplayLabel;<br> Caption := '搜寻';<br> edtInput.Text:=DBGrid1.DataSource.DataSet.fieldbyname(DBGrid1.FocusedField.FieldName).asstring ;<br> ShowModal;<br> if strResult<>'' then<br> begin<br> DBGrid1.StartSearch(-1,edtInput.Text);<br> end;<br> end;<br> DBGrid1.SetFocus;