Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
570
need Row height fixed
posted

I have a column with some text and carriage return and i want to read only one line

 I want a row heigh fixed for all rows for 20pixel

i try this but it does not work:

Grid.DisplayLayout.RowHeightDefault = System.Web.UI.WebControls.Unit.Pixel(20)
Grid.DisplayLayout.RowStyleDefault.Height = System.Web.UI.WebControls.Unit.Pixel(20)

 

Parents
No Data
Reply
  • 640
    posted

    That works for me (in the InitializeLayout event at least).  

    Actually, I use:

    e.Layout.RowHeightDefault = System.Web.UI.WebControls.Unit.Pixel(20)
     


     

     

Children