473,398 Members | 2,165 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,398 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 1305
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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
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.