private void radioMeses_CheckedChanged(object sender, EventArgs e)
        {
            dsProductos.GananciasDataTable tabla = new PuntoVenta.dsProductos.GananciasDataTable();

            //DataGridViewTextBoxColumn txt = gridGanancias.Columns[1] as DataGridViewTextBoxColumn;
            //txt.ValueType = Type.GetType("String");

            gananciasTableAdapter.FillByMeses(tabla, ConfigurationManager.AppSettings["Ganancia"].ToString());

            gridGanancias.DataSource = null;
            gridGanancias.Rows.Clear();
            foreach (DataRow fila in tabla.Rows)
            {
                gridGanancias.Rows.Add
                (
                    fila[0],
                    fila[1].ToString()
                );
            }
            //gridGanancias.DataSource = tabla;

            foreach (DataGridViewRow fila in gridGanancias.Rows)
            {
                ArreglarMes(fila.Cells[0]);
                MostrarEnFormatMoneda(fila.Cells[1]);
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            dsProductos.GananciasDataTable tabla = new PuntoVenta.dsProductos.GananciasDataTable();

            //DataGridViewTextBoxColumn txt = gridGanancias.Columns[1] as DataGridViewTextBoxColumn;
            //txt.ValueType = Type.GetType("String");

            gananciasTableAdapter.FillByFechaExacta(tabla, ConfigurationManager.AppSettings["Ganancia"].ToString(), dateTimePicker1.Value.ToShortDateString());

            gridGanancias.DataSource = null;
            gridGanancias.Rows.Clear();

            foreach (DataRow fila in tabla.Rows)
            {
                gridGanancias.Rows.Add
                (
                    fila[0],
                    fila[1].ToString()
                );
            }

            //gridGanancias.DataSource = tabla;

            foreach (DataGridViewRow fila in gridGanancias.Rows)
            {
                MostrarEnFormatMoneda(fila.Cells[1]);
            }
        }