I have a DataGridView populated with a DataTable.
I added a CheckBoxColumn to select some rows.
My Goal is to show only se
I propose that you add column "Sel" as Boolean in your datatable "DT_Events" .
Change your first code to :
DT_Events.Columns.Add("Sel", GetType(Boolean))
DT_Events.Columns("Sel").SetOrdinal(0)
With Me.DataGridView1
.Columns.Clear()
.DataSource = DT_Events
.Columns("Event").AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells
End With
And the seconde code will work with copying the selected row into "DataGridView2"