Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144186 | Apr 23,2019 11:00 PM UTC | Apr 24,2019 06:21 AM UTC | WinForms | 1 |
![]() |
Tags: SfDataGrid |
this.sfDataGrid1.CurrentCellBeginEdit += sfDataGrid1_CurrentCellBeginEdit;
void sfDataGrid1_CurrentCellBeginEdit(object sender, Syncfusion.WinForms.DataGrid.Events.CurrentCellBeginEditEventArgs e)
{
DataRowView dataRow = e.DataRow.RowData as DataRowView;
if (e.DataColumn.GridColumn.MappingName == "Employee ID" && dataRow[0].ToString() != "1002")
e.Cancel = true;
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.