Example #1
0
        private void updateDataTable(string sCondition, string sOder)
        {
            List <string> list;
            int           max, idx, no;
            DataRow       dataRow;

            if (sOder == "")
            {
                list = m_libOdbc.getHanbaiList(sCondition);
            }
            else
            {
                list = m_libOdbc.getOderHanbaiList(sCondition, sOder);
            }
            max = list.Count;
            no  = 1;
            m_dt.Rows.Clear();
            for (idx = 0; idx < max; idx++)
            {
                dataRow = m_dt.NewRow();
                setCsvDataRow(dataRow, no, 0, list[idx]);
                m_dt.Rows.Add(dataRow);
                no++;
            }
            dgHanbai.DataContext = m_dt;
        }