Previous Topic

Next Topic

Populate the Country DataSet

To populate the DataSet, use the ingresDataAdapter1.Fill (DataSet dataSet) method.

private void LoadCountry(System.Data.DataSet countryDataSet)

{

    try

    {

        DataRow dr;

 

        countryDataSet.Clear();

        dr = countryDataSet.Tables["country"].NewRow();

        dr["ct_code"] = "";

        dr["ct_name"] = "";

        countryDataSet.Tables["country"].Rows.InsertAt(dr, 0);

        ingresDataAdapter1.Fill(countryDataSet);

    }

    catch (Ingres.Client.IngresException ex)

    {

        DialogResult result = DisplayError(ex);

        if (result == DialogResult.OK)

        {

            throw;

        }

    }

}


© 2006 Ingres Corporation. All rights reserved.