width of Datagrid Column

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rajsonigupta
    New Member
    • May 2007
    • 1

    width of Datagrid Column

    suppose I have data to be appeared in column of Datagrid. And Data is not fit into width of column. Data doesn't contain any spaces, but i don't want to increase the width of column of data grid. I know WRAP is not working when there is no space in data.

    Please give solution.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    I think you need to increase the row HEIGHT, hopefully allowing white space below your text so that it will wrap down below.
    There might also be some sort of property on it that has to be set to allow wrapping.
    Check MSDN for the various members of the datagridview class.

    I have a habbit of having them autosize in each direction, so that issue has never come up for me

    Comment

    • Abdul Haque
      New Member
      • May 2007
      • 17

      #3
      try using the Title attribute with datagrid item template column
      use the title as
      <colunmn >
      <asp:template column>
      <item template>
      <label Title='<%#DataB inder.Eval(Cont ainer.DataItem, "ColumnName")%> '>
      <%#DataBinder.E val(Container.D ataItem,"Column Name")%>

      </label>
      </item template>
      </asp:template column>
      </column>


      when the user brings in the mouse over it, it will show you complete information.

      Comment

      Working...