Solved

Exoand row for Infragistics Ultra web grid

Posted on 2006-07-11
4
944 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now