|
-
Jun 10th, 2003, 09:03 AM
#1
Thread Starter
Lively Member
-
Jun 10th, 2003, 02:43 PM
#2
Sleep mode
Is there any relation between them (tables)? and What do you want to do exactly with these tables ?
-
Jun 11th, 2003, 01:51 AM
#3
Thread Starter
Lively Member
Hi Pirate,
There is a relationship between all the tables, mainly the primary table (Problem) links to both the Action and Users Tables by referencing a Unique number.
what i would like to do is take the code i have, which allows me to open and read the Problem table and see the matching record on the users table.
R
-
Jun 11th, 2003, 06:52 AM
#4
Sleep mode
I'm not sure I understood what you are telling but if you want to have two(or more) tables into one dataset do the following .
this will merge two tables into one ds :
1- have two oledbadapters
2-have two datacolumns .
3-one datarelation which accepts the above datacolumns as paramters .
4- add this relation obj to the dataset through relation.add method .
Then , there you go , you have both tables in one dataset . Do whatever you want to do with it . Tell me if you are in troubles .
-
Jun 12th, 2003, 04:43 AM
#5
Thread Starter
Lively Member
Thanks Pirate, That gave me a few pointers, as it was i found some info at Code Project..
however i am now trying to find out how to show the fields of one record on a screen... Hmmm
Thanks for your help
R
-
Jun 12th, 2003, 09:44 AM
#6
Sleep mode
You mean this :
Code:
System.Data.DataSet ds=new DataSet();
ds.ReadXml("data.xml");
for (int ii =0;ii<ds.Tables[0].Rows.Count-1;ii++)
{
this.listBox1.Items.Add(ds.Tables[ii].Rows[ii]);
}
-
Jun 12th, 2003, 10:00 AM
#7
Thread Starter
Lively Member
That is similar to what i am looking for, however i am not using a listbox, i am using normal text boxes, because the user will eventually be able to enter and edit data in the form, so i want them to only see one record at a time, so i need to populate each text box sepparately (sp?)
Thanks for the listbox thing though, i will use that for the next stage of my program..
it it better to use XML based forms with C# then..?
R
-
Jun 12th, 2003, 10:33 AM
#8
Sleep mode
Originally posted by rabhen
it it better to use XML based forms with C# then..?
R
I don't think but I found XML File in the MyDocument and I liked to work with it .
-
Jun 12th, 2003, 10:35 AM
#9
Thread Starter
Lively Member
i will have a look at the XML stuff then, see there is a way of producing what i want that way..
Thanks for you help so far Pirate!
R
-
Jun 12th, 2003, 10:48 AM
#10
Sleep mode
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|