Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys,

I have a project windows application.There are some textboxes, comboboxes and one DevExpress GridControl in the form. The user is going to choose or enter the values into them. After that, the user will save and then all information will be sent to the gridcontrol to see and to list. To save is OK, there is no problem.

However, to update, all values in the gridcontrol must be sent to the textboxes and comboboxes.

What can I do to get the values from DevExpress GridControl to text and combo boxes?

Regards

Haluk
Posted
Updated 28-Jun-12 22:03pm
v2

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
 
Share this answer
 
Comments
haluk_78 29-Jun-12 4:01am    
Dear Mario,

It's not an ASP project... I used Devexpress gridcontol and I couldn't figure out how to getrow value from the grid. If you know the way or codes just share with us. Thanks
Mario Majčica 29-Jun-12 4:04am    
Sorry but there was nowhere saying that this is a WinForms project. Please tag your questions correctly and try to be more precise on it.

On Devexpress site you will find many examples about everything and they have a great support team, try making a question on their site.

Cheers!
haluk_78 29-Jun-12 4:07am    
Thanks Mario... I did it already and checking their examples too...
Mario Majčica 29-Jun-12 4:09am    
Than please close this question by marking an answer as a solution.

Good luck!
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 ?)
 
Share this answer
 
I could help you by below cod:

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900