Logo de Media ap
Forum | Contact
Search the Web:

Caché les colonnes d'un gridvie


Le but est de caché la colonne dans un gridview tout en bindant les valeurs

    protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
    {
        e.Row.Cells[0].Visible = false;

        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            e.Row.Cells[7].Visible = false;
        }
    }

 

Write a comment

  • Required fields are marked with *.

If you have trouble reading the code, click on the code itself to generate a new random code.
Security Code: