Hi Paulo,
Our apologies for the delay in response.
You can handle the CurrentCellValidating event and use the MoveTo method to activate the currentcell. Here is a code snippet
private void gridGroupingControl1_TableControlCurrentCellValidating( object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCancelEventArgs e )
{
if ( e.TableControl.CurrentCell.Renderer.StyleInfo.CellValueType == typeof( DateTime ) )
{
object cellVal = e.TableControl.CurrentCell.Renderer.ControlValue;
string cellText = e.TableControl.CurrentCell.Renderer.ControlText;
if ( ( cellVal == null )
&& ( ( cellText != String.Empty )
|| ( cellText != null ) ) )
{
MessageBox.Show( "error" );
e.Inner.Cancel = true;
int row = e.TableControl.CurrentCell.RowIndex;
int col = e.TableControl.CurrentCell.ColIndex;
e.TableControl.CurrentCell.MoveTo(row, col, GridSetCurrentCellOptions.SetFocus);
}
}
}
Sample :
ModifiedWindowsApplication3.zipBest Regards,
Haneef