0

hi all,

I want to restrict user enter upto value 1000 in a datagridview cell editbegin event.How to check this after we set the following.

dataGridViewValueUnits.BeginEdit(true);

1
Contributor
1
Reply
2
Views
9 Years
Discussion Span
Last Post by mrkcse
0

i have done this by checking condition in key pressevent

if(datagridview.currentcell.editformattedvalue>10000)
{
datagridview.endedit();
}

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.