So i have a datagrid and I have a databindingsource control for my text file. Works like a bomb, but then i added a toolstripmenu so that i can right click on the datagrid, a menu pops up and i can delete the row of data from the text file through the datagrid. I already have that design and must still code it, but i know how it works.
My problem is, my program cannot find the one and only column in the datagrid.
i make use of the following code:
string Delete = SWVerGrid.Rows[SWVerGrid.CurrentCell.RowIndex].Cells["Version"].Value.ToString(); MessageBox.Show(Delete);
I went to the form, looked at the column properties, its clear that "Version" is my column name, i played around with it some more, then every time at runtime, another "Version" column is created for some weird reason...but its not doing that any more. I don't know what i did to fix it. lol.
The error that i receive is: Column named Version cannot be found Parameter name: columnName
Anyone else experience this?