Ejemplo n.º 1
0
        private void DataConnect_Load(object sender, System.EventArgs e)
        {
            sourceDataSet = new DataSet();
            crossTabSource1.DataSource = sourceDataSet;
            barSeries1.DataSource      = crossTabSource1;
            comboBox1.SelectedIndex    = 1;

            LoadData();
            barSeries1.CheckDataSource();
        }
Ejemplo n.º 2
0
        private void DataConnect_Load(object sender, System.EventArgs e)
        {
            sourceDataSet                    = new DataSet();
            singleRecordSource1              = new Steema.TeeChart.Data.SingleRecordSource();
            singleRecordSource1.DataSource   = sourceDataSet;
            singleRecordSource1.ValueMembers = new string[4] {
                "OrderNo", "CustNo", "ItemsTotal", "AmountPaid"
            };
            barSeries1.DataSource = singleRecordSource1;

            LoadData();
            if (currencyManager != null)
            {
                currencyManager.PositionChanged += new EventHandler(currencyManager_PositionChanged);
            }
            barSeries1.CheckDataSource();
        }
 private void dataGrid1_CurrentCellChanged(object sender, System.EventArgs e)
 {
     bar1.CheckDataSource();
 }