472,805 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 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 1400
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 -----------------------------------...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.