Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Copy specific column from 1 datagridview and automatically load it in another

$
0
0

I am creating a PC VB.Net application to program an EEPROM on an alarm system I am building. I have 2 datagridviews being filled from different tables in an Access Database. For this example, they're called DataGridView1 and DataGridView2.

In DataGridView1 there are three columns with the properties stated:

1. Location (hidden column)

2. Description (read only)

3. Data (64 characters max)


In DataGridView2 I have the following columns:

1. SAFE Address

2. Device Number

3. Zone

But, in DataGridView 2 I want a fourth column to be the 'data' column from DataGridView1, just for display purposes because it makes it easier to identify the device details in the grid.

I initially thought it was possible to use different data sources for different columns, but I cannot even find examples of this, or any ways to just get a specific column from this different source.

I am very new to VB and this is a steep learning curve! I have tried to use this example but haven't had any luck in even understanding it. 

Looking for working code if anyone can provide?


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>