Click here to Skip to main content
16,016,623 members
Please Sign up or sign in to vote.
2.60/5 (2 votes)
See more:
Hi Everybody,
I am new to Access, I wonder if Some one can suggest me to achieve this , My query is


I have a form with text boxes for (giving input and displaying table values), I want to update the field values of record with the text box values
Posted

Hi
int Row = dataGridView1.CurrentRow.Index;
dataGridView1[0, Row].Value = textBox1.Text;

you can change the 0 argument in the dataGridView with any column index that you want to change that's value and the Row value is Selected Row.
 
Share this answer
 
Hi Jeo Jessi,

Thanks for your reply but i am not displaying data as a grid any how i am sorry if you couldn't get my question properly , simple updation of entire row

I have achieved it by using update query under button click event ,SInce i am new to Access it took some time for me to figure out sorry and anyhow thanks for your reply
 
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