Hi all.
I'd like any suggestions on how I can get my data set (not a DataSet)
bound to a couple of controls on a form. Let me start by describing
what my data looks like. Each entry correlates to a piece of equipment
and has the following information:
Two strings, one for a system name and one for equipment name
An integer
An ArrayList (which will contain only strings)
Each data entry has an associated TreeNode and is a child node to a
'system' node. Each node is in a hashtable which then points to the
'equipment's data set.
When the user clicks on an 'equipment' node, I'd like to display just
its data (the integer, and the array list). When a 'system' node is
selected, I'd like to display all of the strings in the arraylists of
that system, and a MIN function of that system's integers.
I thought it would be awesome if I could store the entries in a
dataTable (one row per piece of equipment), bind columns to Text and
ListBoxes. Then when a user selects a node, I find it's system &
equipment name (hashtable lookup to get a datarow), then simply change
the datatable's rowFilter string to display only the selected piece of
equipment or only the selected table's equipment.
That all almost works great. However, the list boxes I am using call
the ToString method of each arrayList instead of displaying each string
within the arrayList. (so I get a list of 'System.ArrayLi st' entries).
Does anyone have any workarounds, or suggestions as to better
arrainging my datastructure (such as a custom class instead of a table,
forget data binding, etc)
Thanks in advance,
Kevin 3 1370
Kevin,
The first thing that you need to bind are properties.
Therefore a strongly typed generic list will probably be better.
Cor
<ke********@gma il.comschreef in bericht
news:11******** ************@e3 g2000cwe.google groups.com...
Hi all.
I'd like any suggestions on how I can get my data set (not a DataSet)
bound to a couple of controls on a form. Let me start by describing
what my data looks like. Each entry correlates to a piece of equipment
and has the following information:
Two strings, one for a system name and one for equipment name
An integer
An ArrayList (which will contain only strings)
Each data entry has an associated TreeNode and is a child node to a
'system' node. Each node is in a hashtable which then points to the
'equipment's data set.
When the user clicks on an 'equipment' node, I'd like to display just
its data (the integer, and the array list). When a 'system' node is
selected, I'd like to display all of the strings in the arraylists of
that system, and a MIN function of that system's integers.
I thought it would be awesome if I could store the entries in a
dataTable (one row per piece of equipment), bind columns to Text and
ListBoxes. Then when a user selects a node, I find it's system &
equipment name (hashtable lookup to get a datarow), then simply change
the datatable's rowFilter string to display only the selected piece of
equipment or only the selected table's equipment.
That all almost works great. However, the list boxes I am using call
the ToString method of each arrayList instead of displaying each string
within the arrayList. (so I get a list of 'System.ArrayLi st' entries).
Does anyone have any workarounds, or suggestions as to better
arrainging my datastructure (such as a custom class instead of a table,
forget data binding, etc)
Thanks in advance,
Kevin
Thanks for the reply,
Are you suggesting that instead of storing my entries in a datatable,
store them in a custom generic list, or rather, instead of using array
lists to store the strings, using a generic list there? If its the
later, wouldn't I have the same problem in that, I can't get the
binding control to iterate for each string within the collections?
Regards,
Kevin
Cor Ligthert [MVP] wrote:
Kevin,
The first thing that you need to bind are properties.
Therefore a strongly typed generic list will probably be better.
Cor
<ke********@gma il.comschreef in bericht
news:11******** ************@e3 g2000cwe.google groups.com...
Hi all.
I'd like any suggestions on how I can get my data set (not a DataSet)
bound to a couple of controls on a form. Let me start by describing
what my data looks like. Each entry correlates to a piece of equipment
and has the following information:
Two strings, one for a system name and one for equipment name
An integer
An ArrayList (which will contain only strings)
Each data entry has an associated TreeNode and is a child node to a
'system' node. Each node is in a hashtable which then points to the
'equipment's data set.
When the user clicks on an 'equipment' node, I'd like to display just
its data (the integer, and the array list). When a 'system' node is
selected, I'd like to display all of the strings in the arraylists of
that system, and a MIN function of that system's integers.
I thought it would be awesome if I could store the entries in a
dataTable (one row per piece of equipment), bind columns to Text and
ListBoxes. Then when a user selects a node, I find it's system &
equipment name (hashtable lookup to get a datarow), then simply change
the datatable's rowFilter string to display only the selected piece of
equipment or only the selected table's equipment.
That all almost works great. However, the list boxes I am using call
the ToString method of each arrayList instead of displaying each string
within the arrayList. (so I get a list of 'System.ArrayLi st' entries).
Does anyone have any workarounds, or suggestions as to better
arrainging my datastructure (such as a custom class instead of a table,
forget data binding, etc)
Thanks in advance,
Kevin
Kevin,
Sorry I readed your message to quick,
As I now read your message again and hope to understand it now well, is it
probably better to use dataviews with your datatable.
Than you can set the rowfilter of the dataview to the clicked part in the
tree.
A little bit like this, http://www.vb-tips.com/dbPages.aspx?...1-af26354b1fa0
I hope this helps,
Cor
<ke********@gma il.comschreef in bericht
news:11******** ************@i3 g2000cwc.google groups.com...
Thanks for the reply,
Are you suggesting that instead of storing my entries in a datatable,
store them in a custom generic list, or rather, instead of using array
lists to store the strings, using a generic list there? If its the
later, wouldn't I have the same problem in that, I can't get the
binding control to iterate for each string within the collections?
Regards,
Kevin
Cor Ligthert [MVP] wrote:
>Kevin,
The first thing that you need to bind are properties.
Therefore a strongly typed generic list will probably be better.
Cor
<ke********@gm ail.comschreef in bericht news:11******* *************@e 3g2000cwe.googl egroups.com...
Hi all.
I'd like any suggestions on how I can get my data set (not a DataSet)
bound to a couple of controls on a form. Let me start by describing
what my data looks like. Each entry correlates to a piece of equipment
and has the following information:
Two strings, one for a system name and one for equipment name
An integer
An ArrayList (which will contain only strings)
Each data entry has an associated TreeNode and is a child node to a
'system' node. Each node is in a hashtable which then points to the
'equipment's data set.
When the user clicks on an 'equipment' node, I'd like to display just
its data (the integer, and the array list). When a 'system' node is
selected, I'd like to display all of the strings in the arraylists of
that system, and a MIN function of that system's integers.
I thought it would be awesome if I could store the entries in a
dataTable (one row per piece of equipment), bind columns to Text and
ListBoxes. Then when a user selects a node, I find it's system &
equipment name (hashtable lookup to get a datarow), then simply change
the datatable's rowFilter string to display only the selected piece of
equipment or only the selected table's equipment.
That all almost works great. However, the list boxes I am using call
the ToString method of each arrayList instead of displaying each string
within the arrayList. (so I get a list of 'System.ArrayLi st' entries).
Does anyone have any workarounds, or suggestions as to better
arrainging my datastructure (such as a custom class instead of a table,
forget data binding, etc)
Thanks in advance,
Kevin This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Xizor |
last post by:
Ok, I'm new to PHP and MySQL. I've been going through tutorials, reading the
documentation, and looking through web sites. PHP to me seems great! With
MySQL it seems even better.
However, I'm an experienced C++ programmer. This has allowed me to see many
potential areas where the security of a server can be compromised through
loopholes in PHP. Granted, with the right knowledge these potential threats
can be avoided. But I've just...
|
by: Alexandre |
last post by:
Hi,
Im a newb to dev and python... my first sefl assigned mission was to read a
pickled file containing a list with DB like data and convert this to
MySQL... So i wrote my first module which reads this pickled file and writes
an XML file with list of tables and fields (... next step will the module
who creates the tables according to details found in the XML file).
If anyone has some minutes to spare, suggestions and comments would be...
|
by: The_Kingpin |
last post by:
Hi all,
I'm new to C programming and looking for some help. I have a homework
project to do
and could use every tips, advises, code sample and references I can get.
Here's what I need to do. I have a file named books.txt that contains all
the informations
on the books. Each book is a struc containing 6 fields written on
separated line in the
|
by: Simon Verona |
last post by:
I'm not sure if I'm going down the correct route...
I have a class which exposes a number of properties of an object (in this
case the object represents a customer). Can I then use this object to
databind to text boxes etc?
I can't use a dataset as the object has loads of derived logic, for example
updating one property may actually update several database fields for
example.
|
by: Heinz Ketchup |
last post by:
Hello,
I'm looking to bounce ideas off of anyone, since mainly the idea of using
Multiple Virtual Inheritance seems rather nutty. I chalk it up to my lack
of C++ Experience.
Here is my scenario...
I have 5 Derived Classes
I have 3 Base Classes
| |
by: Anil Gupte |
last post by:
After reading a tutorial and fiddling, I finally got this to work. I can
now put two tables created with a DataTable class into a DataRelation.
Phew! And it works!
Dim tblSliceInfo As New DataTable("SliceInfo")
Dim tblSliceRatings As New DataTable("SliceRatings")
'.... All the adding datacolumns, datarows, etc. goes here..
DatasetInit.Tables.Add(tblSliceInfo)
|
by: joaotsetsemoita |
last post by:
Hello everyone,
im completly new to vb.net and I was assigned to do a simple piece of
software that just had to select from um db in a MS access data base
and insert into a SQL server Database. The structure tables are
exactly the same so there's no need in data conversation.
My idea was to fill a datatable with the results from my
oledbdataadapter and then use that dataset to update on my
sqldataadapterm, however I cant find the way...
|
by: DaveJ |
last post by:
Hi everyone, I really was hesitant to post here for fear of seeming
foolish but I really am desparate, and do appreciate any opportunity
to get answers from real people. So please forgive the stupid
questions.
I just recently becan learning about WCF as a way to create web
services. I had no prior experience developing web service
architecture.
My main question is very naive -- I hope someone can be kind enough to
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |