Pradeep Tapadiya
2006-04-04 19:15:16 UTC
NETters,
What is the right way to inherit DataGridView control?
The steps I tried are:
1. Create a user control class - MyDataGridView.
2. Modify MyDataGridView.cs and change the base class from UserControl to
DataGridView
The first problem I ran into is the code will not compile after the change
is made. MyDataGridView.Designer.cs has the following line in
InitializeComponent() method that won't compile:
this.AutoSacleMode = blah...
I commented this line out. However, the next problem I get is I do not see
any display in the designer view.
Can someone enlighten me on what I am missing?
Thank you in advance for your help.
Pradeep
What is the right way to inherit DataGridView control?
The steps I tried are:
1. Create a user control class - MyDataGridView.
2. Modify MyDataGridView.cs and change the base class from UserControl to
DataGridView
The first problem I ran into is the code will not compile after the change
is made. MyDataGridView.Designer.cs has the following line in
InitializeComponent() method that won't compile:
this.AutoSacleMode = blah...
I commented this line out. However, the next problem I get is I do not see
any display in the designer view.
Can someone enlighten me on what I am missing?
Thank you in advance for your help.
Pradeep