Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DefinedNameConflictResolvingEventArgs.UseExistingName Property

Gets or sets a value indicating whether to use the defined name specified on the destination worksheet or workbook in the conflict situation.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

public bool UseExistingName { get; set; }

#Property Value

Type Description
Boolean

true, to use the name that exists on the destination worksheet or workbook; otherwise, false.

#Remarks

The following example demonstrates how to handle the UseExistingName event to always use that version of the defined name that exists on the destination worksheet or workbook in a conflict situation and suppress displaying the Name Conflict dialog.

spreadsheet.DefinedNameConflictResolving += spreadsheet_DefinedNameConflictResolving;
// ...

private void spreadsheet_DefinedNameConflictResolving(object sender, DefinedNameConflictResolvingEventArgs e)
{
    e.UseExistingName = true;
    e.Handled = true;
}
See Also