I am trying to think of a way to do validation for only positive integers. And this coding should work for around 4 to 5 columns . Can someone help me think of a way to do this and what event handlers do i use?

Where is the data come from? is it from a data base or from a datatable or from a user input?

Please explain your problem clearly so we can help you :)

It is from a database

Is your database populated already or the user must populate it.

As I have said, Please explain your problem clearly so we can help.

If it is possible to show us your code, please do so. Or you can

state the flow of the data.

E.g.:

User -> Database -> Datagrid

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.