Control Array for vb.net Datagridview
Posted on 2011-09-07
Does anyone know if possible to make a control array of datagridviews? Currently I have 4 grids with four unique names, like:
dgv1, dgv2, dgv3, dgv4
I would like one control dgv(0), dgv(1), dgv(2), dgv(3) so I can make all my click events etc easier to program, and also set properties.
If I weren't so old school I'd understand how to make a dgv class and then create the new grids inheriting all the properties from the class. Also, I've heard that you can make a click event routine (or any routine) apply to multiple objects but not sure how.