How to wrap text in GridView Template columns in Asp.net.


Hi,

Wrapping of text in particular column of grid view then write following code in GridView1_RowDataBound() event:


 If e.Row.RowType = DataControlRowType.DataRow Then
            'here change the column index as per your GridVIew Design
            e.Row.Cells(12).Attributes.Add("style", "word-break:break-all;word-wrap:break-word;")
End If

Comments

  1. In this is just a very simple short WordPress tutorial videos tutorial on how to wrap text around a video I've also got a video on this blog post how to read wrap text around an image or a picture very very simple to to wrap text around and imaging WordPress of I've made up a video not put that on this blog post as well that the blog post is actually about how to wrap text around a video so if you don't want to just put the video up the top here you want to put it to the size to the left of the right it's very good very easy but what you need to do is you need to add a bit of code so I've written that code and I've put it in pink here on my site on this on this actual blog post only
    To know more click here

    ReplyDelete
  2. Great info

    I have also the website where you can get vehicle wrap template

    ReplyDelete

Post a Comment