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
Solved

Exoand row for Infragistics Ultra web grid

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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