Rod, there are a couple options for shortening the column length. You
can specify a Width using the WIdth property. It can be either a
percentage of an absolute number of pixels.
Alternatively, you could use the LimitColumn, a custom DataGrid column
class that limits a column's text output to a page developer-specified
number of words. You can learn more about this custom DataGrid column,
and get the code, at:
http://aspnet.4guysfromrolla.com/articles/100202-1.aspx
Happy Programming!
--
Scott Mitchell
http://www.4GuysFromRolla.com
* When you think ASP.NET, think 4GuysFromRolla.com!
rodchar wrote:
> some of my fields are really long text fields, how can I shorten the column
> length? the wrapping=false worked, thank you.
> rodchar
>
> "Scott Mitchell [MVP]" wrote:
>
>
>>rodchar wrote:
>>
>>>Hey all,
>>>
>>>I have a datagrid that auto-generate the columns. When I run the app some of
>>>the column values are wrapping. How do I prevent the values from wrapping?
>>>
>>>Do I have to use template columns to accomplish this feat?
>>
>>No, you should be able to use a standard BoundColumn. Try setting the
>>Wrap property to False. Does that do the trick for you?
>>
>>--
>>
>> Scott Mitchell
>>
>> http://www.4GuysFromRolla.com
>>
>>* When you think ASP.NET, think 4GuysFromRolla.com!
>>