adjusting datagrid's col height

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashima515
    New Member
    • Nov 2006
    • 40

    adjusting datagrid's col height

    Hi

    I have made a datagrid but the height of the cells is too large. It looks very odd. How can I make it to look like an excel sheet. Pls help.

    Regards,
    Ashima
  • shweta123
    Recognized Expert Contributor
    • Nov 2006
    • 692

    #2
    I think there is no such thing to adjust cell height.You can look for CellType
    or CellTemplate.

    Shweta

    Comment

    • benfly08
      New Member
      • Dec 2006
      • 19

      #3
      In fact, you can add a DataGridTableSt yle object, and create your own style column styles. Within DataGridTableSt yle class, there is a property called PreferredRowHei ght, which may be the one you want.



      Hope this could help.



      Ben

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        I would apply a CssClass to datagrid to use CSS directly. You may also use one in the headerstyle and alternatingitem style.

        Hope that this helps.

        Comment

        • karthi84
          Contributor
          • Dec 2006
          • 270

          #5
          try with adjusting the height property of the data grid from inline codeing. this should help you in solving your problem.
          have a good day.

          Comment

          Working...