6 Reusable Code Snippet Topics
Remove Filter
|
|
OK, not completely, I admit. I used some different colors(colours) here and there. But this code will put you on the way. This is a little modification of code I use to show a matrix in a form. Just start a new Forms app and fill in the code. Enjoy! |
|
Well, start a new forms application from VS. In design mode, drop a DataGridView and a Button on the form and fill in the code. The button clickhandler will add an extra totals row to the datagrid. Here it will keep adding and totaling, which is of course meaningless, but … |
|
Btw. this is not a sudoku solver. To gain a deeper insight into the workings of the DataGridView beast (but I begin to love and appreciate it) I decided to make myself a sudoku layout with it. Start a forms app. Make the form a bit bigger and fill in … |
|
Here I am Sending you my code ,wherein I want to have total of examfees(column),PromotionFees(column),Totalfees(column) and Balance(column).Examfees are paid in installment in my project The idea if single record is found then it doing calculation of balance=promotionfees-totlafees and if anywhere due to mistyping is value is higher then the respectively … |
|
The DataGridView class is huge and complex. It is a beast I'm still struggling with, but once you learn to comprehend it, I find it most rewarding! Some try to circumvent it by using listboxes and the lot. Why don't get your feet wet with this as basic as it … |
|
Code shows how to bind the data from a database`s table to dataTable and populate dataGridView with it. And then how to pass the modified (or not) data from dataGridView back to dataBase`s table. |
The End.