Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting design time events in web controls

Status
Not open for further replies.

koraykazgan

Programmer
Jan 11, 2005
17
DE
Hi there,

I am programming a Grid Control (Web Control Library) in C#. I have 3 classes in my prpject: MyCell, MyRow and MyGrid. The MyGrid class is the Web Control. It has a MaxCol and a MaxRow property. The MyGrid class has a MyRow array. In one grid there can be many rows, and each MyRow class has a MyCell array as member. The MyGrid control has two properties called MaxRow and MaxCol. When the user changes the MaxRow property, the MyGrid control is allocating the MyRow array dynamicly to hold enough rows. A similar task is done, when the MaxCol property is changed. All Rows in the MyGrid control are looped and for each row, the col array is dynamicly set.

Till there everythings working fine. But in design time, in the properties window the MyRow array is shown as a property, which has an elipsis to open a collection editor dialog. When the user opens this colleciton editor at design time, the MyRow array is shown in a table. The user can add or delete an item to the MyRow array. But when this happens, I have to get an event, to allocate the necessary memory.

So my question is: Is it possible to get the property changes on an array in the colleciton editor as events in DESIGN TIME??
Thanks for your help, bye.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top