BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
this.AssociatedObject.CurrentCellActivating += AssociatedObject_CurrentCellActivating;
private void AssociatedObject_CurrentCellActivating(object sender, CurrentCellActivatingEventArgs e)
{
if (this.AssociatedObject.Columns[e.CurrentRowColumnIndex.ColumnIndex].MappingName == "Value")
{
var rowIndex = e.CurrentRowColumnIndex.RowIndex;
var recordIndex = this.AssociatedObject.ResolveToRecordIndex(rowIndex);
var record = this.AssociatedObject.View.Records[recordIndex].Data as DataItem;
if (record.ItemType == 2)
e.Cancel = true;
}
} |