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

Strange behaviour in dataview

Hi all,

I have a strange behaviour in dataview, maybe you can help me.
the behaviour is like this :

First I made a datatable (odt) in data set, and then I created a
dataview using this datatable. I added a row to data table by using
(let say the dataview created is odv) odv.table.rows.add(odr). When i
saw in first datatable (odt), there was no rows and when I saw in
odv.table.rows.count there was a row.

So how it can be?

Any one of you can explain why this happens?

Thanks in advance
wirawan.

Nov 17 '05 #1
4 1440
Hi

I could not find such a problem.

Try the following code

DataSet myDs = new DataSet();
DataTable myTable = new DataTable();
myDs.Tables.Add(myTable);
DataView myDv = new DataView(myTable);
myDv.Table.Rows.Add(myDv.Table.NewRow());

Here myDv.Table.Rows.Count
and myTable.Rows.Count returned 1.

Can you post the code.

Manoj

"ig****@gmail.com" wrote:
Hi all,

I have a strange behaviour in dataview, maybe you can help me.
the behaviour is like this :

First I made a datatable (odt) in data set, and then I created a
dataview using this datatable. I added a row to data table by using
(let say the dataview created is odv) odv.table.rows.add(odr). When i
saw in first datatable (odt), there was no rows and when I saw in
odv.table.rows.count there was a row.

So how it can be?

Any one of you can explain why this happens?

Thanks in advance
wirawan.

Nov 17 '05 #2
Hi,

Weird indeed, dataview.Table gets you a reference to the table itself,

could you post some code? I bet the problem is somewhere else

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

<ig****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi all,

I have a strange behaviour in dataview, maybe you can help me.
the behaviour is like this :

First I made a datatable (odt) in data set, and then I created a
dataview using this datatable. I added a row to data table by using
(let say the dataview created is odv) odv.table.rows.add(odr). When i
saw in first datatable (odt), there was no rows and when I saw in
odv.table.rows.count there was a row.

So how it can be?

Any one of you can explain why this happens?

Thanks in advance
wirawan.

Nov 17 '05 #3
i still dont get it, how it can be?
but now everything is fine.

thanks to all of you, for the response.

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 17 '05 #4
i still don't get it, how it can be?
but now everything is fine, wiht out knowing what i have done to fix it.

thanks to all of you, for the response.

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 17 '05 #5

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

Similar topics

2
by: Paul Drummond | last post by:
Hi all, I am developing software for Linux Redhat9 and I have noticed some very strange behaviour when throwing exceptions within a shared library. All our exceptions are derived from...
3
by: Sebastian C. | last post by:
Hello everybody Since I upgraded my Office XP Professional to SP3 I got strange behaviour. Pieces of code which works for 3 years now are suddenly stop to work properly. I have Office XP...
6
by: Edd Dawson | last post by:
Hi. I have a strange problem involving the passing of command line arguments to a C program I'm writing. I tried posting this in comp.programming yesterday but someone kindly suggested that I'd...
31
by: DeltaOne | last post by:
#include<stdio.h> typedef struct test{ int i; int j; }test; main(){ test var; var.i=10; var.j=20;
6
by: Stan | last post by:
Not sure if this is by design or not, but it looks weird. I get a datatable from cache: dt = (DataTable) Cache; Then, depending on selection in dropdown list I filter it: DataView dv =...
3
by: Anup Daware | last post by:
Abstract: I want to filter a dataview with a value where column name have a SPACE. Description:- I bind a dataview to a datagrid, The query which is fetching the results in Dataset is something...
5
by: AlexW | last post by:
Hi I am in the process of developing an inventory application in visual basic. I keep coming up against a problem with using the dataview.rowfilter property. Basically what happens is this: -a...
8
by: Dox33 | last post by:
I ran into a very strange behaviour of raw_input(). I hope somebody can tell me how to fix this. (Or is this a problem in the python source?) I will explain the problem by using 3 examples....
20
by: Pilcrow | last post by:
This behavior seems very strange to me, but I imagine that someone will be able to 'explain' it in terms of the famous C standard. -------------------- code -----------------------------------...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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.