In a project I'm building I have 4 datagrids which I'm using and where I'm updating information manually, so not from a database or a list.
Now to make it a bit easier I would like to use one generic sort of variable to prevent having to write the same code 4 times.
So if I have 4 datagridviews DataGrid1 through DataGrid4 I would like to be able to assign one of those Datagridview to a general object that has all of the properties and methods in it.
I was thinking of using something like this:
Expand|Select|Wrap|Line Numbers
- object DataGrid = DataGrid1
- DataGrid.Rows.Add("INFO");
Any idea on how to do this?
Cheers,
Cainnech