J
Johnny E. Jensen
Hello
Dot sure if this it the right group but here goes.
I'am using the DataGridView multiple times in my application, and then i'll
read a book on inherience, and that opend a new world for me. So i'll
Created a class that inherience from the DataGridView Like:
public class AWDataGridView : System.Windows.Forms.DataGridView
In the Dispose event i'll want to store some info about the DataGridView's
design into the registry. I'll store the columns display index, so if a user
changes the order on the columns, the next time he uses the View it stays as
he left it. To store this I'll need the name of the DataGridView. for that
i'll use the base.name property.
Eks: I'll have two AWDataGridView called view1 and view2. In the dispose
event i'll use the base.name to save info to registry. Next when user brings
up the view1 control it should load the info from registry, but i'll cant
get the base.name to be filled with 'view1' it's empty. The load call are
placed within the AWDataGridView constructor, and i'll think this is a bit
early - but where can i place the load call. When does base.name get the
name value?
Kind regards
Johnny Jensen
Dot sure if this it the right group but here goes.
I'am using the DataGridView multiple times in my application, and then i'll
read a book on inherience, and that opend a new world for me. So i'll
Created a class that inherience from the DataGridView Like:
public class AWDataGridView : System.Windows.Forms.DataGridView
In the Dispose event i'll want to store some info about the DataGridView's
design into the registry. I'll store the columns display index, so if a user
changes the order on the columns, the next time he uses the View it stays as
he left it. To store this I'll need the name of the DataGridView. for that
i'll use the base.name property.
Eks: I'll have two AWDataGridView called view1 and view2. In the dispose
event i'll use the base.name to save info to registry. Next when user brings
up the view1 control it should load the info from registry, but i'll cant
get the base.name to be filled with 'view1' it's empty. The load call are
placed within the AWDataGridView constructor, and i'll think this is a bit
early - but where can i place the load call. When does base.name get the
name value?
Kind regards
Johnny Jensen