ASP.NETデータgridview自動改行

425 ワード

 protected void AxGridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        //          
        //AxGridView1.Attributes.Add("style", "word-break:keep-all;word-wrap:false");

        //         
        AxGridView1.Attributes.Add("style", "word-break:break-all;word-wrap:break-word");

    }