Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

add column at the end of datagridview

$
0
0

I have datatable, 15 columns and bind datagridview to it in form load.

DT.Columns.Add(New DataColumn("NUM", GetType(Integer)))
DT.Columns.Add(New DataColumn("Name", GetType(String)))
DT.Columns.Add(New DataColumn("Gender", GetType(String)))

and so on...

I'm able to add image column at the end of dgv, but when I reed data dgv.SelectedRows(0).Cells(0).Value is an image, not number like it should be... later in my code everything is based on that 0 column so changing it is not an issue... thanks


Viewing all articles
Browse latest Browse all 1710

Trending Articles



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