Standard-Toolkit
Standard-Toolkit copied to clipboard
[Bug]: `KryptonDataGridViewButtonColumn` Does not appear to work when using BindingSource
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
Desktop (please complete the following information):
- OS: Windows 10 Pro
- .Net 4.8