Solved

Exoand row for Infragistics Ultra web grid

Posted on 2006-07-11
4
960 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

621 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