Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42225

VS 2010 [RESOLVED] Manually adding data to DataGridView

$
0
0
I'm using DataGridView without binding it to any source. I want to add all data manually.

I got the way to add a new row.
Code:

empDataGridView.Rows.Add()  'empDataGridView is the name of DataGridView
But, how can I add a piece of data to particular cell of the particular row? And retrieve the Index of row when a row is clicked.

Viewing all articles
Browse latest Browse all 42225

Trending Articles



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