John,
It's not working because it's not supported. You can not use dots in CF
data binding, anything like "airf2.ICAO" will result in ArgumentExeption.
To make it work, bind to the table, not to the DataSet. This would allow
you to remove dots and will work just fine.
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
> From: (E-Mail Removed) (John Murray)
> Newsgroups: microsoft.public.dotnet.framework.compactframework
> Subject: Differences reading XML into listbox in compact framework versus
windows forms
> Date: 27 May 2004 07:26:09 -0700
> Organization: http://groups.google.com
> Lines: 15
> Message-ID: <(E-Mail Removed)>
> NNTP-Posting-Host: 82.68.178.158
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 8bit
> X-Trace: posting.google.com 1085667969 13280 127.0.0.1 (27 May 2004
14:26:09 GMT)
> X-Complaints-To: groups-(E-Mail Removed)
> NNTP-Posting-Date: Thu, 27 May 2004 14:26:09 +0000 (UTC)
> Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news.glorb.com!postnews1.google.com!not-for-mail
> Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:54040
> X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
>
> can anyone tell me why this same code works on a normal windows
> platform but when used in compact framework application produces an
> argument exception on setting either the valuemember or displaymember
>
> ds = new DataSet();
> string filePath = @"\Program Files\crp3\airf2.xml";
> ds.ReadXml(filePath);
> this.comboBox1.DataSource=ds;
> this.comboBox1.ValueMember="airf2.ICAO";
> this.comboBox1.DisplayMember="airf2.AIRFIELD";
>
>
> TIA
>
> John Murray
>