473,586 Members | 2,754 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data Source property

I am inheriting an existing windows control.
I am adding a datasource and datamemberfield properties.
However, the existing control already has "datasource " and "datamember "
properties so I rename my properties to "MyDataSour ce" and
"MyDataMemb er" so as not to confuse with the originals (which are still
required and nothing to do with this addition)

I wish to use the "Editor" attributes to allow assignment of the values
to these properties at design time, but the DataMemberField editor
always takes its datasource from the DataSource property. Is there
anyway to reassign the editor to use the datasource indicated in
"MyDataSour ce"?

My Code:

<Category("Data "), _
Editor("System. Windows.Forms.D esign.DataMembe rListEditor," & _
"System.Design" , GetType(System. Drawing.Design. UITypeEditor))>
_
Public Property MyDataMember() As String
Get
Return mListField
End Get
Set(ByVal Value As String)
mListField = Value

End Set
End Property

<Category("Data "), _
RefreshProperti es(RefreshPrope rties.Repaint), _
TypeConverter(" System.Windows. Forms.Design.Da taSourceConvert er,"
& _
"System.Design" )> _
Public Property MyDataSource() As Object
Get
Return mListSource

End Get
Set(ByVal Value As Object)
mListSource = Value

End Set
End Property
--
Chris Petchey
Nov 21 '05 #1
0 819

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

Similar topics

2
6145
by: Jan van Veldhuizen | last post by:
I try to use the Server Data on Insert property to return a column value swhich is set in a trigger. But it does not work. Why not? What am I doing wrong? (BTW I'm using Oracle version 10) My VB source is: Dim mConn As New ADODB.Connection Dim rs As New ADODB.Recordset
1
1362
by: Not Me | last post by:
Hi, Very new to this, so apologies if I go completely wrong :) I'm wanting to create a link to a separate page based on data in a datagrid. I can get it working almost how I want it using a hyperlinkcolumn. The problem with this, is that the data I wish to pass to the next page is visible in the link (like a get request). I wish to...
1
2744
by: dbuchanan | last post by:
Hello, A section in Data Sources window is mystifying to me. In the case of my code the Data Sources window shows my references to the data access layer. First here is what I see in my Data Sources window ... ( means expandable, means expanded, is a checked checkbox, "QmsDataLayer" is the name of the referenced data layer.)
0
12065
by: sonu | last post by:
I have following client side code which i have used in my asp.net project SummaryFeatured Resources from the IBM Business Values Solution Center WHITEPAPER : CRM Done Right Improve the likelihood of CRM success from less than 20 percent to 60 percent. WHITEPAPER :
1
1310
by: yeltsin27 | last post by:
I can see how to use a cookie, control property, form input value, profile, query string or session value as a parameter to a SQL Data Source. However I would like to use a property that is declared on the page (which as it happens is persised in VIEWSTATE). I know I could write the property to a control, but that's no different to...
14
14621
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control so I get the ObjectDataSource. No problem ..... ObjectDataSource src = .... //is ok i have it
0
1387
by: aarnan | last post by:
I have two SqlDataSources that use two different stored procedures that take parameters to populate two controls, one dependant on an element of the other. The first data source, PreBuyDataSource is bound to PreBuyDetailsView control and its parameters come from the session or request. The stored procedure will always only find one row,...
4
2553
by: =?Utf-8?B?UmludSBHb3BhbGFrcmlzaG5hIFBpbGxhaQ==?= | last post by:
Hi All, I have an application that fetch data thru a store proc and display in a datagrid, but after successful execution of proc the data grid is not visible.Please go thru the following code and plz let me know what is missing.The data grid propertiy "Visible is true". try { OracleDataAccess oracleDA = new OracleDataAccess("Data
0
1279
by: diff | last post by:
I am having trouble preventing a bound source from updating using event-driven validation. There is a very nice article on MSDN explaining this; http://msdn.microsoft.com/en-us/library/ms229603.aspx It clearly states, "When you use data binding, the data in your control is synchronized with the data source during execution of the Validating...
12
77966
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I am a newbie to Struts and JSP...I have been working on the code below for 5 hours now..I googled a lot but couldn't get much help so finally I am here.. Hoping of getting my problem solved. Please give me some idea where I am going wrong ?? I just want to retrieve data from my emp_mstr table and display it using my JSP file... The table...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8215
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6610
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3836
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1448
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.