Ok so, I wanted to make a pretty table for my program as the user would need to specify a string and a long, but they'd need to go together... Instead of using parallel listboxes, textboxes or else, I just went with the DataGridView, which does exactly what I want it to do... However, now I have a few problems:
1. I've managed to add a new row with a string in the first column, but how do I specify what to be put on the second column?
2. I need to know how to make a loop to read every row and return all the data in each column seperately (get an array for the first column, get another array for the second).
3. How do I delete the row in which the user has a cell selected? For example:
Name | Year
Wilbur | 1984
[John] | 1975
John is selected (the cell is blue), how do I delete that row? I can't find any way to detect the currently selected cell... Much less the row in which the cell resides.
150 points each one of those above... Thanks for the help =D.
Start Free Trial