GridView and Calender Example
In the attached code i got problem that, when textbox1.text will be changed, monthCalender will be showed, n what date i select it is written to that textbox. But i am getting problem in entering today's date. and second problem is that after entering two dates in two textboxs, if i click on "GO" button gridview will be showed, which is working correctly. But in gridview my requirement is, when i enter "Quantity" cloumn as 5 and "Rate" column as 10, then automatically it will show "Amount" Column as multiplication of "quantity" And "Rate". Please go through my code and correct it.


Iftikar HussainRank #423 · 5.9K reputationPosted Jul 18, 2013, 11:26 PM EDT
I am able to enter today's date. You need to select it from calendar.
and for second issue
in your form1.designer.cs
this.gvPopulate.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.GridViewCellEndEdit);
in your form1.cs
Regards,
Iftikar
Preeti AgrawallaRank #6,677 · 259 reputationPosted Jul 18, 2013, 11:43 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 18, 2013, 11:44 PM EDT
Regards,
Iftikar
Suresh Babu113 reputationPosted Jul 19, 2013, 12:17 AM EDT
u have another doubts please send to my [email protected]
9030218021
Preeti AgrawallaRank #6,677 · 259 reputationPosted Jul 19, 2013, 12:57 AM EDT
Preeti AgrawallaRank #6,677 · 259 reputationPosted Jul 19, 2013, 1:19 AM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 19, 2013, 1:31 AM EDT
http://www.c-sharpcorner.com/UploadFile/ANURAGSARKAR19/saving-data-using-datagridview-and-doing-calculations/
http://stackoverflow.com/questions/12776618/read-data-from-datagridview-and-save-to-database
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 19, 2013, 1:31 AM EDT
Regards,
Iftikar
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 19, 2013, 1:37 AM EDT
Regards,
Iftikar
Preeti AgrawallaRank #6,677 · 259 reputationPosted Jul 19, 2013, 1:39 AM EDT
Preeti AgrawallaRank #6,677 · 259 reputationPosted Jul 19, 2013, 1:51 AM EDT