且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从DevExpress GridControl获取值到文本框

更新时间:2023-02-20 16:34:34

好吧,DevXpress控件富含客户端功能。



您可以通过调用以下方法获取示例中的行值:



http://documentation.devexpress.com/#AspNet/DevExpressWebASPxGridViewScriptsASPxClientGridView_GetRowValuestopic [ ^ ]



你会发现关于devexpress网站的很多例子,或者你可以在这里进行搜索:



http://search.devexpress.com/?p=T4%7cP5%7c57&d=16 [ ^ ]



我希望这很有帮助。



PS



下次尝试让你的问题更清楚。



干杯
Well, DevXpress controls are rich with client side functionalities.

You can get the row values at example by calling the following method:

http://documentation.devexpress.com/#AspNet/DevExpressWebASPxGridViewScriptsASPxClientGridView_GetRowValuestopic[^]

You will find many examples on devexpress site, or you can perform a search here:

http://search.devexpress.com/?p=T4%7cP5%7c57&d=16[^]

I hope this was helpfull.

P.S.

Next time try to make your question clearer.

Cheers


为什么不将Field数据源绑定到Grid数据源

,如下所示;



Me.txtCode.DataBindings.Add(" EditValue",Me.GridView1.DataSource," Code",True,DataSourceUpdateMode.OnPropertyChanged,"")



然后在TextEditor或ListEditor的EditValeChanged事件上

Me.BindingContext(Me.GridView1).EndCurrentEdit()

Me.GridView1.RefreshData()



为我工作

KISS(保持简单?)
Why not just bind the Field the the Grid DataSource
as in;

Me.txtCode.DataBindings.Add("EditValue", Me.GridView1.DataSource, "Code", True, DataSourceUpdateMode.OnPropertyChanged, "")

Then on the EditValeChanged event of the TextEditor or ListEditor
Me.BindingContext(Me.GridView1).EndCurrentEdit()
Me.GridView1.RefreshData()

Worked for me
KISS (Keep it Simple ?)


我可以通过以下鳕鱼帮助你:



textbox1.text = gridView1.Columns.View .GetFocusedRowCellValue(你的fild);
I could help you by below cod:

textbox1.text= gridView1.Columns.View .GetFocusedRowCellValue ("your fild");