Hi,

I have a windowsform in visual studio 2008, I connect to a ms sql-server
On my form I have a datagridview who I use to enter data etc and save them to the database. I then have textboxes who shows the sum of the columns etc in the table abd save that value back to the database. but for instance if i put the cursor in row 2 of the datagrid the values in theese textboxes dissapear.

What I want to know is if there is apossibility to lock the textbox to

ex. table test, clomn x and row 1??

Recommended Answers

Please show your code, so that we can help you with it.

Jump to Post

All 2 Replies

Please show your code, so that we can help you with it.

what I think is strange is that I have bound the values for variable like this:

Code:
Total_fortj2 = Prosess_140DataGridView.Item(42, 0).Value Then I thought maybe I can bind the textbox.text like this as well.

But I do not know if anyone has tried it like that before?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.