473,467 Members | 1,436 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 3301
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
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
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
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
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
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
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
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
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
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! ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.