By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,188 Members | 1,656 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,188 IT Pros & Developers. It's quick & easy.

Adding Property to my DataGridViewColumn

P: n/a
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
Apr 7 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Can you provide more detail? Is this a Web application or a Windows
application??

"Michel Lapointe" <m@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
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

Apr 7 '06 #2

P: n/a
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

"David" <Co*********@AdsorptionProcessModeling.com> wrote in message
news:MFtZf.2$iF3.1@dukeread01...
Can you provide more detail? Is this a Web application or a Windows
application??

"Michel Lapointe" <m@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
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


Apr 7 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.