Adding Property to my DataGridViewColumn

  • Thread starter Thread starter Michel Lapointe
  • Start date Start date
M

Michel Lapointe

Hi,

I have a problem while creating a customized DataGridViewColumn with a
custom property.

The problem is that after defining the property, adding the column to my
Datagridview and settings it's property to true it never get define in the
..designer files, it always revert back to the default value.

Does anyone know a fix to this issue/bug?

Thank

ML
 
Windows Application.

Property Definition
public class DataGridViewColumn_Generic :
System.Windows.Forms.DataGridViewTextBoxColumn
{
private bool bFilterVisible;

public bool FilterVisible
{
get
{ return bFilterVisible; }
set
{ bFilterVisible = value; }
}
}

Then I modify my column in the designer to use this column type instead of
the Texbox.

Then my property show under misc (don't know how to create a classification
and information for a property in the designer)

Then If I change the value either in the designer or directly in the
..designer.cs and go back inside the designer the value shown for the
property is always the default one.

Is it clearer ? Let me konw

Thank for your help

ML
 
Back
Top