Event in dataGrid

  • Thread starter Thread starter HS1
  • Start date Start date
H

HS1

Hello
I have a DataGrid and using some TextBox(es) to present data of this
DataGrid. I can show the data by setting fields for these TextBox (in design
view). However, I want to write codes (event handler) so that when I change
focus of each row in DataGrid, the data value of the row will be presented
in TextBox
Thank you
S. Hoa
 
S. Hoa,

I make a short answer because I do not know if you read the answers.

Have a look at binding.

Cor

"HS1"
 
Hi,

Bind the datagrid and the textbox to the same datasource. The
currency manager with keep them in sync.

Ken
---------------
Hello
I have a DataGrid and using some TextBox(es) to present data of this
DataGrid. I can show the data by setting fields for these TextBox (in design
view). However, I want to write codes (event handler) so that when I change
focus of each row in DataGrid, the data value of the row will be presented
in TextBox
Thank you
S. Hoa
 
Thank you,
I read all your answers
I think that data binding is available in design form (by setting properties
for TextBox). What I want is a event when I change focus (row) in a datagrid
Thanks
S.Hoa
 
HS1 said:
Thank you,
I read all your answers

Than tell with that if that did fit the question, so I know it was right and
others can use that as well.

Cor
 
Thanks

However, this grid is for Details of a Master-Details tables. I already
tried to bind the datagrid of the Detail and the textbox to the same
datasource but when I change the focus for this Grid, value of the textbox
does not change...
Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top