none
data doen't show up in data grid

    Question

  •  

    Hi

    I have been trying to populate a data grid on a Windows CE 6.0 target with
    the following code:

    public void populateDataGrid()
    {
    dsMachineParameters = new DataSet("MachineParameters");
    dsMachineParameters.EnforceConstraints = true;
    this.dataGrid1.DataSource = dsMachineParameters;
    try
    {
    Console.WriteLine("Read the schema" + xmlSchemaPath);
    dsMachineParameters.ReadXmlSchema(xmlSchemaPath);
    Console.WriteLine("Read the xmlPath" + xmlPath);


    dsMachineParameters.ReadXml(xmlPath);
    }
    catch (Exception err)
    {

    MessageBox.Show(err.Message);
    return;
    }

    }


    I am using the same code in windows XP and the datagrid gets populated on the
    screen. In windows CE it does not. Do I have to do anything more besides
    read a schema and and xml in order to get it to show in the datagrid? Or is there something maybe in OpenNETCF that will give me this funcitonality

    Wednesday, June 11, 2008 4:54 PM

Answers

  • 1. You can not bind to the DataSet on NETCF, only to the DataTable as NETCF’s grid does not support relations.

    2. Bind after schema is loaded, not before.

     

    Wednesday, June 11, 2008 5:07 PM
  • I would suggest checking out ComponentOne and Resco web sites.

    Friday, June 13, 2008 5:27 PM

All replies

  • 1. You can not bind to the DataSet on NETCF, only to the DataTable as NETCF’s grid does not support relations.

    2. Bind after schema is loaded, not before.

     

    Wednesday, June 11, 2008 5:07 PM
  • Are there any controls that I could use to read in an xml file with nested elements, display it to the user, and give them the ability to edit the values?  Also I need to be able to set ranges on the data?

    Wednesday, June 11, 2008 5:35 PM
  • Not what I'm aware of. You can try searching for 3rd party controls and see if they would do what you need.

    Wednesday, June 11, 2008 6:23 PM
  • Not have too much luck finding third party datagrid controls for free.   You wouldn't happen to know of any would you?

     

    Thursday, June 12, 2008 8:52 PM
  • AFAIK there are none unless you remove “for free” qualifier.

    Thursday, June 12, 2008 10:00 PM
  •  

    Ok lets remove the free qualifyer.  What do you know of that I could use?  I really appreciate your help.

     

    Friday, June 13, 2008 3:01 PM
  • I would suggest checking out ComponentOne and Resco web sites.

    Friday, June 13, 2008 5:27 PM
  • If you consider third party controls , I would recommend to look at Bee Mobile DataGrid, it supports Windows CE devices.

    Best regards


    • Edited by Palvol Wednesday, September 11, 2013 8:23 AM
    Thursday, September 05, 2013 8:51 AM