You're in India: Of course it is very very very urgent, and you have no idea what you are doing. No doubt another case of an outsource company underbidding the qualified coders, then asking for free help from the people they undercut so they can get paid for the job they weren't qualified to do.
Can anybody send me code to [...]
The Bytes
volunteers are not here to write your code for you. This is not a free homework service.
Bytes is very much a
"Give me a fish I eat for a day. Teach me to fish I eat for a lifetime" kind of place. Just giving you the code doesn't help you learn near as effectively as good old-fashioned trial and error.
Please research your problem before posting your question.
A great place start your research is the
MSDN library. This library is a bunch of articles and documentation provided by Microsoft about anything to do with .NET development. I recommend that you bookmark the resource for your future reference.
After you research, do some experimenting. Then if your trials aren't doing what you expect, post the code and relevant messages/errors and we'll see what we can do to point you in the right direction for making it work.
Try hitting Google with terms of your programming language and primary terms of what you want to do. For example "
C# custom events" or "
VB datagrid Excel". I've found this to be a very effective tool.