Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / May 2005

Tip: Looking for answers? Try searching our database.

DataGridView derived class designtime issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Miao Chen - 04 May 2005 22:03 GMT
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 - 23 May 2005 20:21 GMT
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!

> Hi,
> I am planning to extend DataGridView control to hosting my own Editing
[quoted text clipped - 20 lines]
> it is not persistent into .cs file. Do you have any ideas?
> Thank you very much.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.