Hey!
So I have various variables set, that are then sent to form 'MethodLight' with this code:
MethodLight MethodLight = new MethodLight();
MethodLight.AddGridViewRows(Quantity, Interleave, FixtureID, ChannelID, Manufacture, Fixture, Mode, Channels, Weight, Watts, Amps, PowerInput, PowerOutput, Lamp, DataConnection, FixturePos
And in form 'MethodLight' I had this code:
public void AddGridViewRows(int Quantity, int Interleave, int FixtureID, int ChannelID, string Manufacture, string Fixture, string Mode, string Channels, string Weight, string Watts, string Amps, string PowerInput, string PowerOutput, string Lamp, string DataConnection, string Position)
{
AddFixtures AddFixtures = new AddFixtures();
FixtureDataView.Rows.Add(FixtureID, ChannelID, Manufacture, Fixture, Mode, Channels, Weight, Watts, Amps, PowerInput, PowerOutput, Lamp, DataConnection, Position);
}
But when I click on the button that sends the data to
AddGridViewRows
, nothing happens at all, no data is added to the datagridview.
Any ideas?
Cheers
What I have tried:
I have tried different ways to add the data, like through an array, but nothing seems to work