String cadenaConexion = "Data Source=PRACTICANTECSAI;" + "Initial Catalog=HojasDeVida; Integrated Security=true ";
SqlConnection MyCon = new SqlConnection(cadenaConexion);
SqlDataAdapter DADocIdent = new SqlDataAdapter();
DADocIdent.SelectCommand = new SqlCommand("spdocident", MyCon);
DADocIdent.SelectCommand.CommandType = CommandType.StoredProcedure;
SqlParameter parameter = new SqlParameter("@strDocIdent", SqlDbType.VarChar,30);
parameter.Value= docident;
DADocIdent.SelectCommand.Parameters.Add(parameter);
DataSet DSDocIdent = new DataSet();
DataTable DTDocIdent=new DataTable();
DTDocIdent = DSDocIdent.Tables.Add("InfPersonal");
DADocIdent.Fill(DSDocIdent, "InfPersonal");
DatGridPersonales.DataSource=DSDocIdent.Tables["InfPersonal"].DefaultView;
DatGridPersonales.DataBind();