menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CellDOM - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CellDOM

    Handles cell and row customization.

    Inheritance
    System.Object
    CellDOM
    Namespace: Syncfusion.Blazor.Grids
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class CellDOM : Object
    Remarks

    An instance of this class is passed in QueryCellInfo and RowDataBound events as argument through which the conditional class and styles can be added to cell/row.

    Constructors

    CellDOM(List<String>, List<String>, IDictionary<String, Object>)

    Declaration
    public CellDOM(List<string> classList = null, List<string> styleList = null, IDictionary<string, object> attributeList = null)
    Parameters
    Type Name Description
    System.Collections.Generic.List<System.String> classList
    System.Collections.Generic.List<System.String> styleList
    System.Collections.Generic.IDictionary<System.String, System.Object> attributeList

    Methods

    AddClass(String[])

    Add multiple class names to the specific cell.

    Declaration
    public void AddClass(string[] classList)
    Parameters
    Type Name Description
    System.String[] classList

    List of class names.

    AddItem(List<String>, String[])

    Add array of values to the list.

    Declaration
    protected void AddItem(List<string> AddTo, string[] values)
    Parameters
    Type Name Description
    System.Collections.Generic.List<System.String> AddTo

    Source list to be added.

    System.String[] values

    Array values to be added to the list.

    AddStyle(String[])

    Add multiple style rules to the specific cell.

    Declaration
    public void AddStyle(string[] styles)
    Parameters
    Type Name Description
    System.String[] styles

    List of style rules.

    SetAttribute(IDictionary<String, Object>)

    Add attributes to the given DOM element.

    Declaration
    public void SetAttribute(IDictionary<string, object> attributes)
    Parameters
    Type Name Description
    System.Collections.Generic.IDictionary<System.String, System.Object> attributes

    List of key and values to be added.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved