I have a datatble with datagridview
dim my_table as new Datatable
my_table.columns.add("Srl_no",type.gettype("system.int32"))
my_table.columns.add("Employee Name",type.gettype("system.string"))
my_table.columns.add("Basic_salary",type.gettype("system.decimal"))
datagridview1.datasource=my_table
now when the users enter their data in datagridview, "basic_salary" column, suppose if they press instead of numbers any characters,
then I want to display a message
"Invalid Key Pressed - Basic Salary should be numerals" like wise
how to do that?
Thanks
dim my_table as new Datatable
my_table.columns.add("Srl_no",type.gettype("system.int32"))
my_table.columns.add("Employee Name",type.gettype("system.string"))
my_table.columns.add("Basic_salary",type.gettype("system.decimal"))
datagridview1.datasource=my_table
now when the users enter their data in datagridview, "basic_salary" column, suppose if they press instead of numbers any characters,
then I want to display a message
"Invalid Key Pressed - Basic Salary should be numerals" like wise
how to do that?
Thanks