ASPxClientVerticalGridCellSelectionChangingEventArgs Class
Contains data for the CellSelectionChanging event.
Declaration
declare class ASPxClientVerticalGridCellSelectionChangingEventArgs extends ASPxClientCancelEventArgs
Remarks
The ASPxClientVerticalGridCellSelectionChangingEventArgs
object is used as an argument for the client-side CellSelectionChanging event.
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()
Inheritance
ASPxClientEventArgs
ASPxClientCancelEventArgs
ASPxClientVerticalGridCellSelectionChangingEventArgs
See Also