Exemple #1
0
        private void mostrarPesable()
        {
            try
            {
                this.dataLista.DataSource = NegocioArticulo.mostrarPesable();
                //this.dataLista.Columns["precio"].DefaultCellStyle.Format = "c3";
                //this.dataLista.Columns["precio"].ValueType = Type.GetType("System.Decimal");
                //this.dataLista.Columns["precio"].DefaultCellStyle.Format = String.Format("###,##0.00");
                this.dataLista.Columns["precio"].DefaultCellStyle.Format = String.Format("$###,##0.00");
            }
            catch (Exception ex)
            {
                UtilityFrm.mensajeError("error con la Base de datos: " + ex.Message);
            }

            //muestro el total de las categorias
            lblTotal.Text = "Total de Registros: " + Convert.ToString(dataLista.RowCount);
        }