By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,022 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

Event in dataGrid

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
S. Hoa,

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

Have a look at binding.

Cor

"HS1"
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

Nov 21 '05 #2

P: n/a
Hi,

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

Ken
---------------
"HS1" <so*@slingshot.co.nz> wrote in message
news:1098097485.265898@ftpsrv1...
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

Nov 21 '05 #3

P: n/a
HS1
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

"Cor Ligthert" <no************@planet.nl> wrote in message
news:O%***************@TK2MSFTNGP09.phx.gbl...
S. Hoa,

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

Have a look at binding.

Cor

"HS1"
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


Nov 21 '05 #4

P: n/a

"HS1" <so*@slingshot.co.nz>
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
Nov 21 '05 #5

P: n/a
HS1
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

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uR****************@TK2MSFTNGP15.phx.gbl...
Hi,

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

Ken
---------------
"HS1" <so*@slingshot.co.nz> wrote in message
news:1098097485.265898@ftpsrv1...
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

Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.