Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.00/5 (7 votes)
See more:
I want to pay 60 lac in 40 installments. In each installment have to pay 1 lac. In each 10th, 20th, 30th and 40th installment have to pay 6 lac. How to create this method in C# code which manipulate 40 installments showing on Data-Grid view in a one click at time. If any one can help me, I will grateful forever

In each installment have to pay 1 lac means i have to pay 36 lac in 36 installments and rest 24 lac have to pay in 10th, 20th, 30th and 40th installment.

I need realy help from anyone who are enable to create method in C# Code on above type of payment installment system. I'll grateful forever.
Posted
Updated 23-Sep-13 8:09am
v7
Comments
[no name] 23-Sep-13 11:46am    
Help you with what? What have you tried? Can you not divide "installments" by 10 to see if you get an whole number as a result?
BillW33 23-Sep-13 12:21pm    
Post the code that you have tried so far and we will be happy to help you fix any issues you may have. We are not here to do all your work for you.
OriginalGriff 23-Sep-13 12:36pm    
Ok, I think we understand the task.
Now, all we need is for you to tell us what problem you are having in implementing it.
Because we can't just do it for you - that would be cheating! :laugh:
And we have no idea of the environment you are working in, how far you have got, why you are stuck.
Help us to help you!
Shah Noman 23-Sep-13 14:02pm    
I need realy help from anyone who are enable to create method in C# Code on above type of payment installment system. I'll grateful forever.
[no name] 23-Sep-13 14:07pm    
If you think that we are here to do your homework assignment for you, you are mistaken.

By your question body, I have no idea what your'e talking about. But, by the subject line alone, NO you can't insert more than one record at a time in a single SQL INSERT statement.

But, there is BulkCopy. I have no idea if this is going to help yuo at all, but it's something you can look at. Read this[^].
 
Share this answer
 
Comments
OriginalGriff 23-Sep-13 14:12pm    
*cough*
INSERT INTO MyTable (Column1, Column2) VALUES (1, 2) (3, 4) (5, 6) ...
*cough*
Dave Kreskowiak 23-Sep-13 19:05pm    
Whoops! Got me there. ;)

You could do that, but I wouldn't call it efficient.


Hey, did the title of the post change?? I don't remember it being what it is now.
"I need realy help from anyone who are enable to create method in C# Code on above type of payment installment system. I'll grateful forever."


Most of the people here could do this.
But...we don't do your homework for you.
We are more than willing to help, to assist, and guide - but we won't just do it for you.
To do that wouldn't help anyone - least of all you - in the long run. Because if you can't cope with trivial tasks, how are you going to cope with the more complex ones that follow it?

Homework is set for reasons: to get you to think about what you have been told; to get you to practice it and reinforce that learning; and to provide the tutor with feedback as to how well you are understanding things - so he can make changes and fix the "holes" he has let grow in your knowledge.

So: what have you done to perform this task? Where are you stuck? How can we help you to move on? What platform are you supposed to build this for?
These aren't questions we ask for the heck of it - we need to know these things or we can't help you at all!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900