This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C3546A.6FA5CFB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
=20
I have the following scenario:
=20
myDataSet.Tables("tblCustomer").Rows.Count =3D 4
This is quite fine as the table contains 4 rows. However=20
myDataSet.Tables("tblCustomer").DefaultView.Count =3D 1=20
is not exactly what I expected it to be (I thought the result should be =
4). Can anybody explain this behavior to me?
Thanks in advance
Daniel
------=_NextPart_000_0008_01C3546A.6FA5CFB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D2><FONT=20
face=3DVerdana>Hi,<?xml:namespace prefix =3D o ns =3D=20
"urn:schemas-microsoft-com:office:office" =
/><o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><o:p><FONT face=3DVerdana=20
size=3D2> </FONT></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D2><FONT face=3DVerdana>I =
have the=20
following scenario:<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><o:p><FONT face=3DVerdana=20
size=3D2> </FONT></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT face=3DVerdana size=3D2><FONT=20
face=3D"Courier New">myDataSet.Tables("tblCustomer").Rows.Count =3D=20
4</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT face=3DVerdana=20
size=3D2></FONT></SPAN> </P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D2><FONT =
face=3DVerdana>This is quite=20
fine as the table contains 4 rows. However </FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D2><FONT=20
face=3DVerdana></FONT></FONT></SPAN> </P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT face=3D"Courier New"=20
size=3D2>myDataSet.Tables("tblCustomer").DefaultView.Count =3D 1=20
</FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D2><FONT=20
face=3DVerdana></FONT></FONT></SPAN> </P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D2><FONT =
face=3DVerdana>is not=20
exactly what I expected it to be (I thought the result should be=20
4). </FONT></FONT></SPAN><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D2><FONT =
face=3DVerdana>Can anybody=20
explain this behavior to me?</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D2><FONT=20
face=3DVerdana></FONT></FONT></SPAN> </P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D2><FONT =
face=3DVerdana>Thanks in=20
advance</FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT face=3DVerdana=20
size=3D2></FONT></SPAN> </P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT face=3DVerdana =
size=3D2> =20
Daniel</FONT></SPAN></P></DIV></BODY></HTML>
------=_NextPart_000_0008_01C3546A.6FA5CFB0--