Solved

Exoand row for Infragistics Ultra web grid

Posted on 2006-07-11
4
951 Views
Last Modified: 2012-06-27
I have been trying unsuccessfully to configure the properties for the grid so the rows expand to accomodate the string placed in the column.

Any suggestions?
Thanks.
0
Comment
Question by:expertsexchangehunter
  • 2
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
ptakja earned 250 total points
ID: 17085142
I am not clear on what you want. Do you want a cell (or cells) to resize with the contents?

If so, you would have to resize the entire column. To do that you need to handle the InitialzeRow event on the grid.

Inside that event you could add something like this:

e.Row.Band.Columns(1).Width = New System.Web.UI.WebControls.Unit(CStr(e.Row.Cells.FromKey("Column1").Value).Length)

This code sets the width of column 1 to be the same as the length of the text in Column1.

Is that what you are looking for?
0
 

Author Comment

by:expertsexchangehunter
ID: 17085214
No. What I need is the row height to automatically expand with the amount of text placed in a column in the row.
So if the text is
sddsadsa
the row would be one line high
if the test is
sdsadsadaaaaaaaaaaadsadsadsadasdasdsadasdasdsadsadsadsadsadsadsadsadsadsadsadsadsadsadsadsadasdsadsadsadsadsadsadsadsadsadsadsadsadsadsadsadsadsadsad
the row would expand to a height of two or more lines
0
 
LVL 14

Expert Comment

by:ptakja
ID: 17085504
Found the solution on the Infragistics website. Requires client-side javascript to accomplish...

http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=6143

Hope that helps!
0
 

Author Comment

by:expertsexchangehunter
ID: 17085625
Thanks.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question