Skip to main content
All docs
V24.2

ASPxClientVerticalGridCellSelectionChangingEventArgs.cellInfo Property

Gets information about the cell whose selection was changed.

Declaration

cellInfo: ASPxClientVerticalGridCellInfo

Property Value

Type Description
ASPxClientVerticalGridCellInfo

Information about the cell.

Remarks

Web Forms:

<dx:ASPxVerticalGrid ID="VerticalGrid" runat="server" ...>
    <ClientSideEvents 
        CellSelectionChanging="onCellSelectionChange" />
    <SettingsEditing Mode="Batch">
        <BatchEditSettings EnableMultipleCellSelection="True" />
    </SettingsEditing>
    <Rows>
      <dx:VerticalGridComboBoxRow FieldName="CategoryID" Caption="Category Name" />
      ...
    </Rows>
</dx:ASPxVerticalGrid>
function onCellSelectionChange(s, e) {
    if (e.cellInfo.row.fieldName == 'CategoryID') {
        // your code
        e.cancel = true;
    }
}

MVC:

@Html.DevExpress().VerticalGrid(settings => {
    settings.Name = "verticalGrid";
    settings.ClientSideEvents.CellSelectionChanging = "function (s, e) { 
        if (e.cellInfo.row.fieldName == 'CategoryID') {
          // your code
          e.cancel = true;
        }
    }"; 
    settings.Rows.Add("CategoryID");
    ...
}).Bind(Model).GetHtml()
See Also