private void obtain_data() { var cmd = new clsCmd(); //cmd.setValue("date1", monthCalendar1.SelectionRange.Start.ToString("dd/MMM/yyyy")); if (chkVolume_Above.Checked) { cmd.setValue("deliv_qty_above", txtVolumeAbove.Text); } if (chkDeliveryPerAbove.Checked) { cmd.setValue("deliv_per_above", txtDeliveryPerAbove.Text); } if (chkNoOfTradesAbove.Checked) { cmd.setValue("no_of_trades_above", txtNoOfTradesAbove.Text); } if (chkIndex.Checked) { cmd.setValue("index_name", drpIndex.SelectedValue); } var t = ui.oTier.getData("stock_data_tmp", cmd).Obj as DataTable; oGRID_BhavData.createColumnsFromCheckListItem(); grdData.DataSource = t; oGRID_BhavData.color_close_price(); }
private void obtain_data() { var cmd = new clsCmd(); cmd.setValue("mStockID", iStockID); if (chkVolume_Above.Checked) { cmd.setValue("deliv_qty_above", txtVolumeAbove.Text); } if (chkDeliveryPerAbove.Checked) { cmd.setValue("deliv_per_above", txtDeliveryPerAbove.Text); } if (chkNoOfTradesAbove.Checked) { cmd.setValue("no_of_trades_above", txtNoOfTradesAbove.Text); } var t = ui.oTier.getData("stock_data", cmd).Obj as DataTable; oGRID_BhavData.createColumnsFromCheckListItem(); grdData.DataSource = t; oGRID_BhavData.color_close_price(); }
private void btnShow_Click(object sender, EventArgs e) { bindingSource1.DataSource = t; string qFilter = ""; qFilter = " DELIV_PER > " + txtDeliveryPer.Text + " and DELIV_QTY > " + txtVolume.Text; if (txtQuickSearch.Text.isEmpty() == false) { qFilter += string.Format(" and symbol like '{0}*'", txtQuickSearch.Text); } bindingSource1.Filter = qFilter; oBhavGrid.createColumnsFromCheckListItem(); dataGridView1.DataSource = bindingSource1; oBhavGrid.color_close_price(); }