Groups | Blog | Home
all groups > dotnet windows forms designtime > may 2005 >

dotnet windows forms designtime : DataGridView derived class designtime issue



Miao Chen
5/4/2005 4:03:49 PM
Hi,
I am planning to extend DataGridView control to hosting my own Editing
control. Here is my class which derived from DataGridViewColumn.

public class MyDataGridViewMaskedTextBoxColumn : DataGridViewColumn
{
.....
[
Category("EditingControl Settings"),
Browsable(true),
]
public string Mask
{
get { return m_csMaskString;
}
set
{
m_csMaskString = value;
}
}

I am fining out that in design time, whatever I assign to "Mask" property,
it is not persistent into .cs file. Do you have any ideas?
Thank you very much.

Nate Smith
5/23/2005 12:21:14 PM
On another discussion site(www.windowsforms.net), I asked about a similar
problem in VB2005 and was told I had to override the Clone property of the
column. Now, when I tried doing this, it caused a few other problems(as in
all my columns disappeared!), but I think that's at least a first step in the
right direction. If you get a complete solution to this, please post it back
here. Thanks!

[quoted text, click to view]
AddThis Social Bookmark Button