当前位置: 动力学知识库 > 问答 > 编程问答 >

datagridview - Editing the Entire MS Access Database Row in VB.NET by just selecting the ID

问题描述:

I have created an Application in VB.NET that is using MS Access as Data Source. I can successfully Add data in my Application. But here is the RUB! I want to edit my data after I selected it from my DataGridView. I can successfully Pass data from the DataGridView on another form by using this code

c_click = Me.C_supportDataGridView.CurrentRow.Index

Form2.Label8.Text = Me.C_supportDataGridView.Item(0, c_click).Value

Which solves my Problem A! But my problem B is how can I save this data in my MS Access database after I edit it in this form? I have an Idea in mind which is to select an ID or a certain cell which triggers to select it's corresponding row but I'm clueless on how to do this with MS Access! Any Advice?

分享给朋友:
您可能感兴趣的文章:
随机阅读: