473,486 Members | 1,560 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Adding Property to my DataGridViewColumn

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
2 3305
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1576
by: Werner Boelen | last post by:
After binding a DataGridView to a datasource and looping through the columns to update the headertext, some captions get modified and some don't. Sample code copied from ms-help: For Each...
0
1537
by: c j anderson, mcp | last post by:
Synopsis: DataGridViewColumn reorder does not update display, but a repopulation of underlying dataset does... I must be missing something obvious. I have a scenario where the underlying XML...
0
396
by: perspolis | last post by:
Hi all I created a customized DataGridViewColumn and added a property named AutoMerge like this private bool autoMerge=false; public bool AutoMerge{ set{this.autoMerge = value;}
0
1257
by: Tsair | last post by:
I create a custom DataGridViewColumn from a usercontrol with Textbox and a button. After input the usercontrol textbox value and press Tab to next column, the value of the textbox does not show in...
5
11194
by: Tsair | last post by:
I do a customise DataGridColumn with a UserControl (TextBox + Button for Calender), DataGridView does not show the data content of the column.
2
1408
by: Andy | last post by:
Hi all, I'm creating my own DataGridViewColumn class, and have added a string property to it which should be settable via the Property designer. I've gotten the property to show up, but even if...
3
8356
by: WayDownUnder | last post by:
I have a datagridview that is bound to a cutom collection. The classes contained in the custom collection have the properties that are bound to the class . This works fine ! But if one of the...
1
10631
by: John J. Hughes II | last post by:
I am trying to create a custom DataGridViewCell which is "NOT" derived from DataGridViewTextBoxColumn. The painting works fine but I am unable to get the control into edit mode. Do I need to...
0
1200
by: Franz | last post by:
I created a custom dataGridViewColumn which only accept numbers. For this Column, I can define a precision (number of decimal). I can set this property into my code, but not in design mode! ...
0
7094
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6839
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7305
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3066
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.