473,408 Members | 1,744 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

persisting collection in a custom datagrid

I appologize for the cross-posting, but I received no responses from
the building controls group.

I have a custom control that inherits from a DataGrid control. I have
a property that has an arraylist of strings. I want to add items as a
child tag of the grid. How is the best way to do this. Here is what I
have as of now.
[ToolboxData("<{0}:OrdersDataGrid runat=server></{0}:OrdersDataGrid>"),

ParseChildren(true)]
public class OrdersDataGrid : System.Web.UI.WebControls.DataGrid
{
...
private ArrayList dataMethodParameter = null;
[Category("Data"),
Editor("System.Windows.Forms.Design.StringCollecti onEditor,
System.Design", "System.Drawing.Design.UITypeEditor, System.Drawing"),
DesignerSerializationVisibility(DesignerSerializat ionVisibility.Content),

PersistenceMode(PersistenceMode.InnerProperty),
Description("Parameter to Pass to the selected OrdersProvider
Method")]
public ArrayList DataMethodParameter
{
get{return this.dataMethodParameter;}
set{this.dataMethodParameter = value;}
}
...

}
What I would like to happen is when items are added via the
StringCollectionEditor they are child items of the control
<cc1:OrdersDataGrid ... >
<DataMethodParameters>
<param>xxx</param>
<param>xxx</param>
...
</DataMethodParamters>

Dec 6 '05 #1
0 1106

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: SammyBar | last post by:
Hi, I'm trying to bind a custom collection class to a data grid, following the guidelines from the article http://msdn.microsoft.com/msdnmag/issues/05/08/CollectionsandDataBinding/default.aspx....
6
by: Whoever | last post by:
Here's what I have A custom collection: public class aUser { public string UserName { get {...} set {...} } public class UserList : System.Collection.CollectionBase { public void Add(aUser...
2
by: SammyBar | last post by:
Hi, I'm trying to bind a custom collection class to a data grid, following the guidelines from the article http://msdn.microsoft.com/msdnmag/issues/05/08/CollectionsandDataBinding/default.aspx....
0
by: john_teague | last post by:
I appologize for the cross-posting, but I received no responses from the building controls group. I have a custom control that inherits from a DataGrid control. I have a property that has an...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.