473,725 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weired Problems with Dataset and Dataviews

hi!

myDataSet that is fillled from an Access 2000 db and includes ONE table

From that Table in myDataSet I create myDataView and use a Rowfilter to get
a few rows that i work with (i need a DataView cause I do a lot of
filtering)

The problem is the primary key field (a unique counter), let's call it
"TBL_ID".

If I, after using the Rowfilter, end up with a DataView that has Zero
records and I start adding a record (thru a datagrid) the TBL_ID field in
the DataView will always start on 0... and then count upwards .. 1, then 2,
then 3.. etc.

BUT... If I, after using the Rowfilter, end up with a DataView that has more
than one record, the TBL_ID field in the rows will be the right number from
the Table in the Access Database. If I get only one record and the TBL_ID is
54... the next new record I create will be 55 and etc.... This is how I want
it to act of course.

Why will myDataView start on 0 when it has no rows? It's created from the
Dataset that might have MANY records with ids...

How do I fix it? This is a big headache for me right now!

Best Regards
/Lars Netzel

Nov 20 '05 #1
13 1827
Hi Lars,

Because the dataset is disconnected.
When you use autoincrement you would have to do always this

ds.update(xx)
ds.fill(xx) 'with this it gets the assigned numbers

After this it takes the last assigned number, even if another user has added
something between that in between.

Therefore the next added number on your grid is not sure the correct number
when it is not updated, because again another user can have added a row in
the table.

I hope this gives the idea?

Cor
myDataSet that is fillled from an Access 2000 db and includes ONE table

From that Table in myDataSet I create myDataView and use a Rowfilter to get a few rows that i work with (i need a DataView cause I do a lot of
filtering)

The problem is the primary key field (a unique counter), let's call it
"TBL_ID".

If I, after using the Rowfilter, end up with a DataView that has Zero
records and I start adding a record (thru a datagrid) the TBL_ID field in
the DataView will always start on 0... and then count upwards .. 1, then 2, then 3.. etc.

BUT... If I, after using the Rowfilter, end up with a DataView that has more than one record, the TBL_ID field in the rows will be the right number from the Table in the Access Database. If I get only one record and the TBL_ID is 54... the next new record I create will be 55 and etc.... This is how I want it to act of course.

Why will myDataView start on 0 when it has no rows? It's created from the
Dataset that might have MANY records with ids...

Nov 20 '05 #2
Okay I understand what you mean and that actually solved another probelm..
but not the problem I asked about in this thread.

The problem is that if I use a DataView that has no records the
Autoincrement starts on 0 whereas the Access Tables (that the DataView is
based on) always start on 1... which is a bit of a problem. So when I add a
new row I see the ID field auto fills in a 0 but When I save, it becomes 1
in the database... and then all the other information in the application
based on that ID (which is 0 i runtime before I have saved) will be all
messed up. Cause their ParentID is then 0 which does'nt exist.

Maybe you misunderstood me OR maybe you actually answered me but I
misunderstod you?

I guess What I want is someway of telling the Dataview to start the
Autoincrement on 1 and not 0....

/Lars

"Cor Ligthert" <no**********@p lanet.nl> skrev i meddelandet
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Hi Lars,

Because the dataset is disconnected.
When you use autoincrement you would have to do always this

ds.update(xx)
ds.fill(xx) 'with this it gets the assigned numbers

After this it takes the last assigned number, even if another user has added something between that in between.

Therefore the next added number on your grid is not sure the correct number when it is not updated, because again another user can have added a row in
the table.

I hope this gives the idea?

Cor
myDataSet that is fillled from an Access 2000 db and includes ONE table

From that Table in myDataSet I create myDataView and use a Rowfilter to get
a few rows that i work with (i need a DataView cause I do a lot of
filtering)

The problem is the primary key field (a unique counter), let's call it
"TBL_ID".

If I, after using the Rowfilter, end up with a DataView that has Zero
records and I start adding a record (thru a datagrid) the TBL_ID field in the DataView will always start on 0... and then count upwards .. 1, then

2,
then 3.. etc.

BUT... If I, after using the Rowfilter, end up with a DataView that has

more
than one record, the TBL_ID field in the rows will be the right number

from
the Table in the Access Database. If I get only one record and the TBL_ID is
54... the next new record I create will be 55 and etc.... This is how I

want
it to act of course.

Why will myDataView start on 0 when it has no rows? It's created from

the Dataset that might have MANY records with ids...


Nov 20 '05 #3
Actually, you should start with -1 and count down

OHM

"Lars Netzel" <no****@no.no > wrote in message
news:uu******** ******@TK2MSFTN GP10.phx.gbl...
Okay I understand what you mean and that actually solved another probelm..
but not the problem I asked about in this thread.

The problem is that if I use a DataView that has no records the
Autoincrement starts on 0 whereas the Access Tables (that the DataView is
based on) always start on 1... which is a bit of a problem. So when I add a new row I see the ID field auto fills in a 0 but When I save, it becomes 1
in the database... and then all the other information in the application
based on that ID (which is 0 i runtime before I have saved) will be all
messed up. Cause their ParentID is then 0 which does'nt exist.

Maybe you misunderstood me OR maybe you actually answered me but I
misunderstod you?

I guess What I want is someway of telling the Dataview to start the
Autoincrement on 1 and not 0....

/Lars

"Cor Ligthert" <no**********@p lanet.nl> skrev i meddelandet
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Hi Lars,

Because the dataset is disconnected.
When you use autoincrement you would have to do always this

ds.update(xx)
ds.fill(xx) 'with this it gets the assigned numbers

After this it takes the last assigned number, even if another user has

added
something between that in between.

Therefore the next added number on your grid is not sure the correct

number
when it is not updated, because again another user can have added a row in
the table.

I hope this gives the idea?

Cor
myDataSet that is fillled from an Access 2000 db and includes ONE table
From that Table in myDataSet I create myDataView and use a Rowfilter
to get
a few rows that i work with (i need a DataView cause I do a lot of
filtering)

The problem is the primary key field (a unique counter), let's call it
"TBL_ID".

If I, after using the Rowfilter, end up with a DataView that has Zero
records and I start adding a record (thru a datagrid) the TBL_ID field in the DataView will always start on 0... and then count upwards .. 1,
then 2,
then 3.. etc.

BUT... If I, after using the Rowfilter, end up with a DataView that
has more
than one record, the TBL_ID field in the rows will be the right number

from
the Table in the Access Database. If I get only one record and the TBL_ID
is
54... the next new record I create will be 55 and etc.... This is how

I want
it to act of course.

Why will myDataView start on 0 when it has no rows? It's created from

the Dataset that might have MANY records with ids...



Nov 20 '05 #4
Actually... If I use the DataTable as DataSource in the grid instead of the
DataView, the Autoincrement starts on 0 anyway... So it's not only the
DataView tha tis a problem for me..

Why does it start on 0 when Access 2000 starts on 1?

/Lars
"Cor Ligthert" <no**********@p lanet.nl> skrev i meddelandet
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Hi Lars,

Because the dataset is disconnected.
When you use autoincrement you would have to do always this

ds.update(xx)
ds.fill(xx) 'with this it gets the assigned numbers

After this it takes the last assigned number, even if another user has added something between that in between.

Therefore the next added number on your grid is not sure the correct number when it is not updated, because again another user can have added a row in
the table.

I hope this gives the idea?

Cor
myDataSet that is fillled from an Access 2000 db and includes ONE table

From that Table in myDataSet I create myDataView and use a Rowfilter to get
a few rows that i work with (i need a DataView cause I do a lot of
filtering)

The problem is the primary key field (a unique counter), let's call it
"TBL_ID".

If I, after using the Rowfilter, end up with a DataView that has Zero
records and I start adding a record (thru a datagrid) the TBL_ID field in the DataView will always start on 0... and then count upwards .. 1, then

2,
then 3.. etc.

BUT... If I, after using the Rowfilter, end up with a DataView that has

more
than one record, the TBL_ID field in the rows will be the right number

from
the Table in the Access Database. If I get only one record and the TBL_ID is
54... the next new record I create will be 55 and etc.... This is how I

want
it to act of course.

Why will myDataView start on 0 when it has no rows? It's created from

the Dataset that might have MANY records with ids...


Nov 20 '05 #5
What?

An Autoincrement cant' start on -1 and even if it could, it does'nt... it
starts on 0 in the DataView and the DataTable... and I want it to start on
1, since it's impossible to have a record in Access 2000 with an ID of 0 (if
it is an Autoincrement field)

/Lars
"One Handed Man ( OHM#)" <news.microsoft .com> skrev i meddelandet
news:uH******** ******@tk2msftn gp13.phx.gbl...
Actually, you should start with -1 and count down

OHM

"Lars Netzel" <no****@no.no > wrote in message
news:uu******** ******@TK2MSFTN GP10.phx.gbl...
Okay I understand what you mean and that actually solved another probelm..
but not the problem I asked about in this thread.

The problem is that if I use a DataView that has no records the
Autoincrement starts on 0 whereas the Access Tables (that the DataView is based on) always start on 1... which is a bit of a problem. So when I add
a
new row I see the ID field auto fills in a 0 but When I save, it becomes
1 in the database... and then all the other information in the application based on that ID (which is 0 i runtime before I have saved) will be all
messed up. Cause their ParentID is then 0 which does'nt exist.

Maybe you misunderstood me OR maybe you actually answered me but I
misunderstod you?

I guess What I want is someway of telling the Dataview to start the
Autoincrement on 1 and not 0....

/Lars

"Cor Ligthert" <no**********@p lanet.nl> skrev i meddelandet
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Hi Lars,

Because the dataset is disconnected.
When you use autoincrement you would have to do always this

ds.update(xx)
ds.fill(xx) 'with this it gets the assigned numbers

After this it takes the last assigned number, even if another user has

added
something between that in between.

Therefore the next added number on your grid is not sure the correct

number
when it is not updated, because again another user can have added a row in the table.

I hope this gives the idea?

Cor

> myDataSet that is fillled from an Access 2000 db and includes ONE table >
> From that Table in myDataSet I create myDataView and use a Rowfilter to get
> a few rows that i work with (i need a DataView cause I do a lot of
> filtering)
>
> The problem is the primary key field (a unique counter), let's call
it > "TBL_ID".
>
> If I, after using the Rowfilter, end up with a DataView that has Zero > records and I start adding a record (thru a datagrid) the TBL_ID field
in
> the DataView will always start on 0... and then count upwards .. 1, then 2,
> then 3.. etc.
>
> BUT... If I, after using the Rowfilter, end up with a DataView that has more
> than one record, the TBL_ID field in the rows will be the right
number from
> the Table in the Access Database. If I get only one record and the TBL_ID
is
> 54... the next new record I create will be 55 and etc.... This is

how I want
> it to act of course.
>
> Why will myDataView start on 0 when it has no rows? It's created

from the
> Dataset that might have MANY records with ids...



Nov 20 '05 #6
Wrong !

You misunderstand me.

The DataColumn class has an AutoIncrement Step which can be -1 and a See
which can be -1, therefore it is possible to allow the table to
Autoincrement in a negative direction. When Rows are insterted in the source
database, they can then take on new numbers, having the primary key set to a
negative index ensures that they never clash with existing numbers.

OHM
"Lars Netzel" <no****@no.no > wrote in message
news:u%******** ********@TK2MSF TNGP09.phx.gbl. ..
What?

An Autoincrement cant' start on -1 and even if it could, it does'nt... it
starts on 0 in the DataView and the DataTable... and I want it to start on
1, since it's impossible to have a record in Access 2000 with an ID of 0 (if it is an Autoincrement field)

/Lars
"One Handed Man ( OHM#)" <news.microsoft .com> skrev i meddelandet
news:uH******** ******@tk2msftn gp13.phx.gbl...
Actually, you should start with -1 and count down

OHM

"Lars Netzel" <no****@no.no > wrote in message
news:uu******** ******@TK2MSFTN GP10.phx.gbl...
Okay I understand what you mean and that actually solved another probelm.. but not the problem I asked about in this thread.

The problem is that if I use a DataView that has no records the
Autoincrement starts on 0 whereas the Access Tables (that the DataView is based on) always start on 1... which is a bit of a problem. So when I add
a
new row I see the ID field auto fills in a 0 but When I save, it becomes
1 in the database... and then all the other information in the application based on that ID (which is 0 i runtime before I have saved) will be
all messed up. Cause their ParentID is then 0 which does'nt exist.

Maybe you misunderstood me OR maybe you actually answered me but I
misunderstod you?

I guess What I want is someway of telling the Dataview to start the
Autoincrement on 1 and not 0....

/Lars

"Cor Ligthert" <no**********@p lanet.nl> skrev i meddelandet
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
> Hi Lars,
>
> Because the dataset is disconnected.
> When you use autoincrement you would have to do always this
>
> ds.update(xx)
> ds.fill(xx) 'with this it gets the assigned numbers
>
> After this it takes the last assigned number, even if another user has added
> something between that in between.
>
> Therefore the next added number on your grid is not sure the correct
number
> when it is not updated, because again another user can have added a row
in
> the table.
>
> I hope this gives the idea?
>
> Cor
>
> > myDataSet that is fillled from an Access 2000 db and includes ONE table
> >
> > From that Table in myDataSet I create myDataView and use a

Rowfilter to
> get
> > a few rows that i work with (i need a DataView cause I do a lot of
> > filtering)
> >
> > The problem is the primary key field (a unique counter), let's
call it > > "TBL_ID".
> >
> > If I, after using the Rowfilter, end up with a DataView that has Zero > > records and I start adding a record (thru a datagrid) the TBL_ID field in
> > the DataView will always start on 0... and then count upwards ..
1, then
> 2,
> > then 3.. etc.
> >
> > BUT... If I, after using the Rowfilter, end up with a DataView
that has
> more
> > than one record, the TBL_ID field in the rows will be the right

number > from
> > the Table in the Access Database. If I get only one record and the
TBL_ID
> is
> > 54... the next new record I create will be 55 and etc.... This is how
I
> want
> > it to act of course.
> >
> > Why will myDataView start on 0 when it has no rows? It's created

from the
> > Dataset that might have MANY records with ids...
>
>



Nov 20 '05 #7
Okay, I have found where to set the Seed now.. but where in access can I
choose to use Negative Autoincrement?

/Lars

"One Handed Man ( OHM#)" <news.microsoft .com> skrev i meddelandet
news:e8******** *****@tk2msftng p13.phx.gbl...
Wrong !

You misunderstand me.

The DataColumn class has an AutoIncrement Step which can be -1 and a See
which can be -1, therefore it is possible to allow the table to
Autoincrement in a negative direction. When Rows are insterted in the source database, they can then take on new numbers, having the primary key set to a negative index ensures that they never clash with existing numbers.

OHM
"Lars Netzel" <no****@no.no > wrote in message
news:u%******** ********@TK2MSF TNGP09.phx.gbl. ..
What?

An Autoincrement cant' start on -1 and even if it could, it does'nt... it
starts on 0 in the DataView and the DataTable... and I want it to start on 1, since it's impossible to have a record in Access 2000 with an ID of 0

(if
it is an Autoincrement field)

/Lars
"One Handed Man ( OHM#)" <news.microsoft .com> skrev i meddelandet
news:uH******** ******@tk2msftn gp13.phx.gbl...
Actually, you should start with -1 and count down

OHM

"Lars Netzel" <no****@no.no > wrote in message
news:uu******** ******@TK2MSFTN GP10.phx.gbl...
> Okay I understand what you mean and that actually solved another

probelm..
> but not the problem I asked about in this thread.
>
> The problem is that if I use a DataView that has no records the
> Autoincrement starts on 0 whereas the Access Tables (that the DataView
is
> based on) always start on 1... which is a bit of a problem. So when
I add
a
> new row I see the ID field auto fills in a 0 but When I save, it becomes
1
> in the database... and then all the other information in the

application
> based on that ID (which is 0 i runtime before I have saved) will be

all > messed up. Cause their ParentID is then 0 which does'nt exist.
>
> Maybe you misunderstood me OR maybe you actually answered me but I
> misunderstod you?
>
> I guess What I want is someway of telling the Dataview to start the
> Autoincrement on 1 and not 0....
>
> /Lars
>
>
>
>
>
> "Cor Ligthert" <no**********@p lanet.nl> skrev i meddelandet
> news:%2******** *******@tk2msft ngp13.phx.gbl.. .
> > Hi Lars,
> >
> > Because the dataset is disconnected.
> > When you use autoincrement you would have to do always this
> >
> > ds.update(xx)
> > ds.fill(xx) 'with this it gets the assigned numbers
> >
> > After this it takes the last assigned number, even if another user has > added
> > something between that in between.
> >
> > Therefore the next added number on your grid is not sure the
correct > number
> > when it is not updated, because again another user can have added a row
in
> > the table.
> >
> > I hope this gives the idea?
> >
> > Cor
> >
> > > myDataSet that is fillled from an Access 2000 db and includes
ONE table
> > >
> > > From that Table in myDataSet I create myDataView and use a

Rowfilter to
> > get
> > > a few rows that i work with (i need a DataView cause I do a lot of > > > filtering)
> > >
> > > The problem is the primary key field (a unique counter), let's call
it
> > > "TBL_ID".
> > >
> > > If I, after using the Rowfilter, end up with a DataView that has

Zero
> > > records and I start adding a record (thru a datagrid) the TBL_ID

field
> in
> > > the DataView will always start on 0... and then count upwards ..

1, then
> > 2,
> > > then 3.. etc.
> > >
> > > BUT... If I, after using the Rowfilter, end up with a DataView that has
> > more
> > > than one record, the TBL_ID field in the rows will be the right

number
> > from
> > > the Table in the Access Database. If I get only one record and the > TBL_ID
> > is
> > > 54... the next new record I create will be 55 and etc.... This

is how
I
> > want
> > > it to act of course.
> > >
> > > Why will myDataView start on 0 when it has no rows? It's created

from
> the
> > > Dataset that might have MANY records with ids...
> >
> >
>
>



Nov 20 '05 #8
Hi Lars,

I have tried what you said, and it looks weird with the allownew = true.
I would not use that in this situation from you.

There is some behaviour that the fill after the update updates the dataset,
however does not things as deleting old rows that is probably as well
affected here. (I do not understand why however it seems to be)

That is not nice, therefore with those autoincrements, I think that you can
better do something as, (you would have to do that as well when you have
deletes in your dataset).
da.Update(ds)
ds.Clear()
da.Fill(ds)

I think the next is useless in this situation, however that is up to you,
setting the seed to 1 is:
ds.Tables(0).Co lumns("YourAuto IncKey").AutoIn crementSeed = 1

I hope this helps?

Cor
Nov 20 '05 #9
Lars,

Just make sure your ID is an Autonumber field in Access and all you have to
do Update, the dataAdapter will take care of it for you. You will find that
your new records have new sequential positive numbers in the Access DB.

Regards - OHM
"Lars Netzel" <no****@no.no > wrote in message
news:u8******** ********@TK2MSF TNGP11.phx.gbl. ..
Okay, I have found where to set the Seed now.. but where in access can I
choose to use Negative Autoincrement?

/Lars

"One Handed Man ( OHM#)" <news.microsoft .com> skrev i meddelandet
news:e8******** *****@tk2msftng p13.phx.gbl...
Wrong !

You misunderstand me.

The DataColumn class has an AutoIncrement Step which can be -1 and a See
which can be -1, therefore it is possible to allow the table to
Autoincrement in a negative direction. When Rows are insterted in the source
database, they can then take on new numbers, having the primary key set to a
negative index ensures that they never clash with existing numbers.

OHM
"Lars Netzel" <no****@no.no > wrote in message
news:u%******** ********@TK2MSF TNGP09.phx.gbl. ..
What?

An Autoincrement cant' start on -1 and even if it could, it does'nt... it starts on 0 in the DataView and the DataTable... and I want it to start
on
1, since it's impossible to have a record in Access 2000 with an ID of
0 (if
it is an Autoincrement field)

/Lars
"One Handed Man ( OHM#)" <news.microsoft .com> skrev i meddelandet
news:uH******** ******@tk2msftn gp13.phx.gbl...
> Actually, you should start with -1 and count down
>
> OHM
>
> "Lars Netzel" <no****@no.no > wrote in message
> news:uu******** ******@TK2MSFTN GP10.phx.gbl...
> > Okay I understand what you mean and that actually solved another
probelm..
> > but not the problem I asked about in this thread.
> >
> > The problem is that if I use a DataView that has no records the
> > Autoincrement starts on 0 whereas the Access Tables (that the DataView is
> > based on) always start on 1... which is a bit of a problem. So
when
I add
> a
> > new row I see the ID field auto fills in a 0 but When I save, it becomes
1
> > in the database... and then all the other information in the
application
> > based on that ID (which is 0 i runtime before I have saved) will
be all
> > messed up. Cause their ParentID is then 0 which does'nt exist.
> >
> > Maybe you misunderstood me OR maybe you actually answered me but I
> > misunderstod you?
> >
> > I guess What I want is someway of telling the Dataview to start
the > > Autoincrement on 1 and not 0....
> >
> > /Lars
> >
> >
> >
> >
> >
> > "Cor Ligthert" <no**********@p lanet.nl> skrev i meddelandet
> > news:%2******** *******@tk2msft ngp13.phx.gbl.. .
> > > Hi Lars,
> > >
> > > Because the dataset is disconnected.
> > > When you use autoincrement you would have to do always this
> > >
> > > ds.update(xx)
> > > ds.fill(xx) 'with this it gets the assigned numbers
> > >
> > > After this it takes the last assigned number, even if another user has
> > added
> > > something between that in between.
> > >
> > > Therefore the next added number on your grid is not sure the correct > > number
> > > when it is not updated, because again another user can have
added a row
> in
> > > the table.
> > >
> > > I hope this gives the idea?
> > >
> > > Cor
> > >
> > > > myDataSet that is fillled from an Access 2000 db and includes ONE > table
> > > >
> > > > From that Table in myDataSet I create myDataView and use a Rowfilter
> to
> > > get
> > > > a few rows that i work with (i need a DataView cause I do a
lot of > > > > filtering)
> > > >
> > > > The problem is the primary key field (a unique counter), let's

call
it
> > > > "TBL_ID".
> > > >
> > > > If I, after using the Rowfilter, end up with a DataView that
has Zero
> > > > records and I start adding a record (thru a datagrid) the TBL_ID field
> > in
> > > > the DataView will always start on 0... and then count upwards ... 1,
> then
> > > 2,
> > > > then 3.. etc.
> > > >
> > > > BUT... If I, after using the Rowfilter, end up with a DataView

that
> has
> > > more
> > > > than one record, the TBL_ID field in the rows will be the

right number
> > > from
> > > > the Table in the Access Database. If I get only one record and

the > > TBL_ID
> > > is
> > > > 54... the next new record I create will be 55 and etc.... This is how
> I
> > > want
> > > > it to act of course.
> > > >
> > > > Why will myDataView start on 0 when it has no rows? It's created from
> > the
> > > > Dataset that might have MANY records with ids...
> > >
> > >
> >
> >
>
>



Nov 20 '05 #10

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

Similar topics

6
4637
by: Lester Moreno | last post by:
Hello all, Up to now C# have been an great experience but I found myself in a end of the road problem. Let say that you have two windows program running on a local network area. User1 and user2 have the same information in the dataset and user1 makes a change, unless user2 refill all his tables in his dataset he can't see the
1
1364
by: david | last post by:
i am tring to generate a single dataset which contains all records from a table and then create subsets of this dataset which can fill certail controls and i am not sure of the best method eg. dataview, select etc. can someone help..
1
16591
by: Arpan | last post by:
The following ASPX code snippet creates a DataSet programmatically right from the scratch: 'create an empty DataSet Dim objDS As New DataSet("MyDataSet") 'create a new table & add columns Dim dTable As New DataTable("Users") dTable.Columns.Add("ID",System.Type.GetType("System.Int32")) dTable.Columns.Add("FirstName",System.Type.GetType("System.String")) dTable.Columns.Add("LastName",System.Type.GetType("System.String"))
0
5820
by: M. David Johnson | last post by:
I cannot get my OleDbDataAdapter to update my database table from my local dataset table. The Knowledge Base doesn't seem to help - see item 10 below. I have a Microsoft Access 2000 database which indexes computer magazine articles for personal reference. I am developing a Visual Basic.NET program whose sole purpose is to enter new records into the database. No updates to existing entries, no deletions, and no display
2
1834
by: Jeff Brown | last post by:
OK i have came to the conclusion that since this app will be run on multiple computers that loading a complete database and then updating on exit is a moot point. I have tried several ideas submitted, but i am unable to get one of them to work completely. Here is the code i had before i realized that when i filled the dataset in the form load procedure that it would "ruin, replace, mess up" the dataset named the same thing on the other form....
2
6901
by: John Granade | last post by:
I'm looking for the best way to make a dataset available from multiple Windows forms. The dataset is created from an XML file. I have a main form (frmMain) that loads the dataset and reads the data but then I have other forms that give the ability to add, modify, and delete rows. This of course changes the dataset and I need that reflected in the main form. At first I was actually passing a reference of the dataset to the "modify" form...
2
3700
by: Carl Summers | last post by:
I have a table in an Access database that has no sort applied in Access. When I fill a dataset with data from that table (the entire one dimensional table) my dataset is sorted differently than the database. This would not be a problem, and really isn't a problem except that it means I have to search the dataset each time I want to find a particular record instead of just storing a variable. Which brings me to a different question....
17
2766
by: A_PK | last post by:
I have problem databinding the DataGrid with DataView/DataSet after the filter... I create the following proceudre in order for user to filter as many as they want, but the following code is only allow user to filter the first time, when they tried the second time, the speficied cast error message will prompt one.... I create a mydataset1 first, and the mydataset1 data source was getting from DataGrid.DataSource.
3
1543
by: lgbjr | last post by:
Hi All, I need some help getting data from an XML file into a dataset. The XML file has more data in it than I actually need. So, what I think I need to do is to create a dataset with the tables and columns that I need, then use the dataset.ReadXml to put the data into the tables. So, I've created a dataset, created 3 tables, each with 2 columns. I have three dataviews on a form linked to these tables. So far, this is what I'm doing:
0
8888
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
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,...
0
9401
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, 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...
0
8096
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6011
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();...
0
4517
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...
0
4782
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2634
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.