Back to Devexpress

ASPxGridBehaviorSettings.AllowEllipsisInText Property

aspnet-devexpress-dot-web-dot-aspxgridbehaviorsettings.md

latest2.6 KB
Original Source

ASPxGridBehaviorSettings.AllowEllipsisInText Property

Specifies whether the control can automatically truncate the cell texts if they don’t fit into the cell width.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
public bool AllowEllipsisInText { get; set; }
vb
<DefaultValue(False)>
Public Property AllowEllipsisInText As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true, to automatically truncate text; otherwise, false.

|

Remarks

Set the AllowEllipsisInText property to true to automatically truncate cell texts if they don’t fit into the cell width. To indicate that the text is clipped, the control displays an ellipsis (‘…’).

Note

  • For multi-line text cells, the grid displays cells on one line, truncates their texts and displays ellipsis symbol if the AllowEllipsisInText property is set to true.
  • Specify widths for the grid columns if the AllowEllipsisInText property is set to true as the grid uses the fixed table layout in this case.

Example

Web Forms:

aspx
<dx:ASPxGridView runat="server" Width="100%" ID="ASPxGridView1" ClientInstanceName="sampleGrid" ...>
    <SettingsBehavior AllowEllipsisInText="true"/>
    ...
</dx:ASPxGridView>

MVC:

csharp
@Html.DevExpress().GridView(settings => {
    settings.Name = "GridView";
    ...
    settings.SettingsBehavior.AllowEllipsisInText = true;
    ...
}).Bind(Model).GetHtml()

Online Demos

See Also

ASPxGridBehaviorSettings Class

ASPxGridBehaviorSettings Members

DevExpress.Web Namespace