Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27153

VS 2010 Adding to existing DataTable

$
0
0
Hi,

This will most likely be aimed at member: kevininstructor.

He helped me in this thread http://www.vbforums.com/showthread.p...heckBox-Column

Assuming I have 2 DataGridViews next to each other and want to add/remove rows between them using the CheckBox column.

Each time I click "Add" it fill the DataGridView's DataSource and overwrites the previous rows that existed.

vb Code:
  1. Me.dgv_TMDocuments.DataSource = CType(bsDataTM.DataSource, DataTable).GetChecked("CheckBox")

Because of the function used to allow the "checked" rows to be moved I am not sure exactly how to change the code to just insert into a DataTable, to allow the DataGridView's DataSource to easily be amended...

I hope that makes sense.

Any help will be greatly appreciated.

Thanks in advance.

Viewing all articles
Browse latest Browse all 27153

Trending Articles



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