c # – see a table with the buttonfield of my gridview

My problem is the following:
in my gridview I put a buttonfield to expand the information I have in that row, but I do not work the code I did I thought so

Any ideas? preened in advance

protected void grDatos_RowCommand (object sender, GridViewCommandEventArgs e)
        {
            try
            {
                if (e.CommandName == "See")
                {
                    int index = Convert.ToInt32 (e.CommandArgument);
                    GridViewRow row = grData.Rows[index];
                    Session[“verCuenta”] = Server.HtmlDecode (row.Cells[0].Text);
                    VerAuentas (Convert.ToString (Session[“verCuenta”]));
                }
            }
            catch {}

                }

    protected void VerCuentas (string p)
    {

        DataTable dtDatos = null;
        string strConsulta = "exec SP_VER_CuentasMasImputadas";

        try
        {
            strConsulta = strConsulta + "@codigo =" + Convert.ToString (Session["verCuenta"]);


            dtDatos = Connection.fillGridFromConsulta (strConsulta);

            if (dtData == null)
            {
                if (Session["error"] ! = null)
                {
                    lblMessage.Text = Session["error"].ToString ();
                    lblMessage.Visible = true;
                }

            }
            else
            {
                grDataVer.DataSource = dtData;
                grDataVer.DataBind ();

            }

        }
        catch {}
    }

frontend

                
             
             
            
                

            
        
    

store procedure that I am using:

ALTER PROCEDURE [dbo].[SP_VER_CuentasMasImputadas]
@codigo int

ACE
BEGIN

select TransactionId, AccountCode, NetAmount, EffectiveDate, CreatedDate, DocumentType, JournalDescription, LineDescription,
FirstNameusername, Movement.Description as descrip
from Main Table
left join Users on MainTable.UserId = Users.Id_user
left join Movement on MainPanel.Id_movement = Movement.Id_movement
where AccountCode = @codigo

END