Hi Telerik Admin's,
I've requirement in RadGridView.
I'm adding a row dynamically in the gridview.
The added row can be edit, while editing the row I want the user to restrict to enter ONLY ALPHA NUMERIC.
Here I've pasted the code for restricting user enter special character. please have a look.
As well as, is there any possibility to do the validation in each column cell of the newly added row.
Check ALPHA NUMERIC:-
---------------------------------
public bool IsAlphaNumeric(String strToCheck)
{
Regex objAlphaNumericPattern = new Regex("[^a-zA-Z0-9]");
return !objAlphaNumericPattern.IsMatch(strToCheck);
}
Remove Special Characters :-
--------------------------------------
public string RemoveSpecialChars(string input)
{
return Regex.Replace(input, @"[^0-9a-zA-Z\._]", string.Empty);
}
Please guide me to do this ASAP.
Thanks in advance,
Karthikeyan Manickam.