DataTable de C#

DataTable retorno = new DataTable();

public void boton

{     

    retorno = getContratoRetorno(); //

    int codigo_contrato_retornado = Convert.ToInt32(retorno.Rows[0]["CODIGO"].ToString());

}

public DataTable getContratoRetorno()

        {

            IDictionary<string, Object> dic = new Dictionary<string, object>();

            DataTable dt = ejecutar.StoreProcedureListar("SP_CONTRATO_RETORNO_ID", dic);

            dt.Dispose();

            return dt;

        }


Comentarios

Entradas populares de este blog

METODOS SET Y GET A LA BASE DE DATOS

EVENTOS DE UN DATADRIDVIEW

PINTAR UN DATAGRIDVIEW