This is a multi-part message in MIME format.
------=_NextPart_000_0204_01C47431.D406C710
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I have the following code, which should allow me to only show a certain =
number of items in a listbox:
DataView dv =3D new DataView(dataSet1.Tables[ISSUE_TYPE_TABLE], =
"IssueAreaDesc=3D'" + txt + "'","",DataViewRowState.ModifiedCurrent);
types.DataSource =3D dv.Table;
types.DisplayMember =3D "Issue Type";
types.DataMember =3D "IssueType";
types.ValueMember =3D "IssueTypeDesc";
types.DataBind();
Instead, my listbox does contain the full table's data. Any idea what =
might be wrong?
Thanks
Mike
------=_NextPart_000_0204_01C47431.D406C710
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.3790.118" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have the following code, which should =
allow me to=20
only show a certain number of items in a listbox:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>
<P> DataView dv =3D </FONT><FONT color=3D#0000ff=20
size=3D2>new</FONT><FONT size=3D2> =
DataView(dataSet1.Tables[ISSUE_TYPE_TABLE],=20
"IssueAreaDesc=3D'" + txt +=20
"'","",DataViewRowState.ModifiedCurrent);<BR> =
types.DataSource=20
=3D dv.Table;<BR> types.DisplayMember =3D "Issue=20
Type";<BR> types.DataMember =3D=20
"IssueType";<BR> types.ValueMember =3D=20
"IssueTypeDesc";<BR> =
types.DataBind();</P></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Instead, my listbox does contain the =
full table's=20
data. Any idea what might be wrong?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Mike</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0204_01C47431.D406C710--