public RFIDCardCommandsEditor(RFIDCard aRFIDCard) { InitializeComponent(); RFIDCard = aRFIDCard; Commands = RFIDCard.Commands; foreach (var command in RFIDCard.Commands) { dataGridView.Rows.Add(command); } dataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; }