Standard-Toolkit icon indicating copy to clipboard operation
Standard-Toolkit copied to clipboard

[Bug]: `KryptonDataGridViewButtonColumn` Does not appear to work when using BindingSource

Open Smurf-IV opened this issue 3 years ago • 1 comments

Describe the bug Exception is thrown as part of the BindingSource assignment, when using KryptonDataGridViewButtonColumn

To Reproduce

gdvDesignModels.SetMasterSource(new BindingSource { DataSource = masterList }, "DesignId",
                    new DataGridViewColumn[]
                            {
                                new DataGridViewTextBoxColumn { DataPropertyName = "DesignId", Name = "DesignId", Visible = false },
                            new KryptonDataGridViewTextBoxColumn { DataPropertyName = "DesignName", Name = "DesignName", HeaderText = @"Design Name"},
                            new KryptonDataGridViewDateTimePickerColumn { DataPropertyName = "CreatedUTC", Name = "CreatedUTC", HeaderText = @"Created UTC"},
                            new DataGridViewButtonColumn{ Name = "ArchiveDesigns", Text = @"Archive Designs", UseColumnTextForButtonValue=true}
                            //new KryptonDataGridViewButtonColumn{ Name = "ArchiveDesigns", Text = @"Archive Designs", UseColumnTextForButtonValue=false}
                            }
                    );

Expected behavior For the KryptonDataGridViewButtonColumn column to be created and be useable In the code above the Standard column work.

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 10 Pro
  • .Net 4.8

Smurf-IV avatar Apr 07 '21 09:04 Smurf-IV