473,396 Members | 1,918 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,396 software developers and data experts.

DataSheet Form

I'm coding a complex physical problem which request the input and ouput of a
lot of datas.
In order to do that I have started to bulid a form which contains a lot of
Label and TextBox ,
but this is very heavy and difficult to manage.
I also thought in using a data grid but didn't found it easier.

Is there any easier way to achieve that ?

--
Bernard Bourée
be*****@bouree.net
Nov 21 '05 #1
4 1304
Bernard,

Answering your other question I got this idea.
You can use the classes as you asked about.

However you can as well use a datatable together with a datagrid, that gives
you a very easy approach.

A datatable you is easy to build as this (all typed in this message so watch
typos)

\\\needs a datagrid on a form
dim dt as new datatable
dt.columns.add("Id")
dt.columns.add("MyValueRow1")
dt.columns.add("MyValueRow2")
dt.rows.add(dt.newrow)
dim dr as datarow = dt.rows(0)
dr("Id") = "One"
dr("MyValueRow1") = "Whatevervalue"
dr("MyValueRow2") = "AnotherValue)
datagrid1.datasource = dt
///

This gives a datagrid with one row.

And than you can make thousand of rows in loops, using dataviews or all
other posibilities from AdoNet even when it is not connected to a database.
When you add this table to a dataset which is very easy to do by just
ds.add(dt) you can save it just by ds.writeXml("path") and read it as well.

I hope this helps something?

Cor

"Bernard Bourée" <be*****@bouree.net>
I'm coding a complex physical problem which request the input and ouput of
a
lot of datas.
In order to do that I have started to bulid a form which contains a lot of
Label and TextBox ,
but this is very heavy and difficult to manage.
I also thought in using a data grid but didn't found it easier.

Is there any easier way to achieve that ?

--
Bernard Bourée
be*****@bouree.net

Nov 21 '05 #2
Bernard,

Answering your other question I got this idea.
You can use the classes as you asked about.

However you can as well use a datatable together with a datagrid, that gives
you a very easy approach.

A datatable you is easy to build as this (all typed in this message so watch
typos)

\\\needs a datagrid on a form
dim dt as new datatable
dt.columns.add("Id")
dt.columns.add("MyValueRow1")
dt.columns.add("MyValueRow2")
dt.rows.add(dt.newrow)
dim dr as datarow = dt.rows(0)
dr("Id") = "One"
dr("MyValueRow1") = "Whatevervalue"
dr("MyValueRow2") = "AnotherValue)
datagrid1.datasource = dt
///

This gives a datagrid with one row.

And than you can make thousand of rows in loops, using dataviews or all
other posibilities from AdoNet even when it is not connected to a database.
When you add this table to a dataset which is very easy to do by just
ds.add(dt) you can save it just by ds.writeXml("path") and read it as well.

I hope this helps something?

Cor

"Bernard Bourée" <be*****@bouree.net>
I'm coding a complex physical problem which request the input and ouput of
a
lot of datas.
In order to do that I have started to bulid a form which contains a lot of
Label and TextBox ,
but this is very heavy and difficult to manage.
I also thought in using a data grid but didn't found it easier.

Is there any easier way to achieve that ?

--
Bernard Bourée
be*****@bouree.net

Nov 21 '05 #3
Cor

Thank you for this, I'm going to work on it.

--
Bernard Bourée
be*****@bouree.net
"Cor Ligthert" <no************@planet.nl> a écrit dans le message de
news:uk**************@TK2MSFTNGP10.phx.gbl...
Bernard,

Answering your other question I got this idea.
You can use the classes as you asked about.

However you can as well use a datatable together with a datagrid, that gives you a very easy approach.

A datatable you is easy to build as this (all typed in this message so watch typos)

\\\needs a datagrid on a form
dim dt as new datatable
dt.columns.add("Id")
dt.columns.add("MyValueRow1")
dt.columns.add("MyValueRow2")
dt.rows.add(dt.newrow)
dim dr as datarow = dt.rows(0)
dr("Id") = "One"
dr("MyValueRow1") = "Whatevervalue"
dr("MyValueRow2") = "AnotherValue)
datagrid1.datasource = dt
///

This gives a datagrid with one row.

And than you can make thousand of rows in loops, using dataviews or all
other posibilities from AdoNet even when it is not connected to a database. When you add this table to a dataset which is very easy to do by just
ds.add(dt) you can save it just by ds.writeXml("path") and read it as well.
I hope this helps something?

Cor

"Bernard Bourée" <be*****@bouree.net>
I'm coding a complex physical problem which request the input and ouput of a
lot of datas.
In order to do that I have started to bulid a form which contains a lot of Label and TextBox ,
but this is very heavy and difficult to manage.
I also thought in using a data grid but didn't found it easier.

Is there any easier way to achieve that ?

--
Bernard Bourée
be*****@bouree.net


Nov 21 '05 #4
Cor

Thank you for this, I'm going to work on it.

--
Bernard Bourée
be*****@bouree.net
"Cor Ligthert" <no************@planet.nl> a écrit dans le message de
news:uk**************@TK2MSFTNGP10.phx.gbl...
Bernard,

Answering your other question I got this idea.
You can use the classes as you asked about.

However you can as well use a datatable together with a datagrid, that gives you a very easy approach.

A datatable you is easy to build as this (all typed in this message so watch typos)

\\\needs a datagrid on a form
dim dt as new datatable
dt.columns.add("Id")
dt.columns.add("MyValueRow1")
dt.columns.add("MyValueRow2")
dt.rows.add(dt.newrow)
dim dr as datarow = dt.rows(0)
dr("Id") = "One"
dr("MyValueRow1") = "Whatevervalue"
dr("MyValueRow2") = "AnotherValue)
datagrid1.datasource = dt
///

This gives a datagrid with one row.

And than you can make thousand of rows in loops, using dataviews or all
other posibilities from AdoNet even when it is not connected to a database. When you add this table to a dataset which is very easy to do by just
ds.add(dt) you can save it just by ds.writeXml("path") and read it as well.
I hope this helps something?

Cor

"Bernard Bourée" <be*****@bouree.net>
I'm coding a complex physical problem which request the input and ouput of a
lot of datas.
In order to do that I have started to bulid a form which contains a lot of Label and TextBox ,
but this is very heavy and difficult to manage.
I also thought in using a data grid but didn't found it easier.

Is there any easier way to achieve that ?

--
Bernard Bourée
be*****@bouree.net


Nov 21 '05 #5

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

Similar topics

3
by: Keith Wilby | last post by:
I have a form which allows both form and datasheet views. My question is, is it possible to control the field (column) names in datasheet view? What happens at the moment is that the name is...
3
by: Kent Eilers | last post by:
I want to follow naming conventions for my controls - i usually prefix combo boxes with "cbo". When a form is in datasheet view however i do not want the user to see the 'cbo' prefix in front of...
1
by: Yuki | last post by:
I am trying to find out if I can have a specific record that has been selected in a list box be opened in datasheet view. I can't seem to find where this can happen or what I need to use to make...
1
by: George Kandaz | last post by:
Steve, I posted a question to your last post almost a week ago, but never heard from you again. Please read my last message, as follows. Thanks. ...
5
by: sara | last post by:
I haven't been able to find this answer in previous posts; I have a form, with a subform that is displayed in datasheet view, and one field "Item Description" could be from very few to many...
1
by: sasan3 | last post by:
when I set visible=false, then entry is not visible in form view, but still shows up in datasheet view. How do I make a field not to show based on some condition in datasheet view? Tx.
5
by: Newbie | last post by:
I would like to display certain columns from a table on a form. One of my columns that I want to show is a Yes/No field so that my users can pick their players for a fantasy football week. If...
5
by: Bill | last post by:
This database has no forms. I am viewing an Access table in datasheet view. I'd like to execute a macro to execute a function (using "runcode"). In the function, I'll reading data from the record...
2
by: Alan Forsyth | last post by:
That rather long subject says it. In Access97 running on XP - I want to display a Maximized size Form01, then open a Restore size Datasheet View Form02 on top of the first Form. PopUp won't give...
4
WyvsEyeView
by: WyvsEyeView | last post by:
I have a datasheet form in which one field is a combo box that will potentially contain hundreds of records. I've read about several methods of speeding up such combo boxes or limiting their initial...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
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,...
0
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...
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,...

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.