請問各位先進:
我自訂了一個 DataGridView 元件,在 Columns 集合裡的 ColumnType 有自訂一個選項,當選擇這個自訂的選項時,
希望在 DefaultCellStyle 屬性中能增加一個自訂的屬性欄位,但是就是無法顯示出這個要自訂的屬性欄位,程式碼如下,及附圖說明,
請各位前輩幫忙指導~謝謝
public partial class DataGridViewCustom : DataGridView
{
public partial class DataGridViewTextBoxColumnCustom : DataGridViewTextBoxColumn
{
public partial class DefaultCellStype : DataGridViewCellStyle
{
[Browsable(true), Category("SinfoComponent")]
public string 我自訂的屬性
{
get;
set;
}
}
}
}