Hi,
I have a GridView that is always available for editing (i.e. user is always in edit mode and does not need to click a button for each row in order to edit). Each row contains two date fields that are modifiable, and a Days field that is not modifiable, but is instead a calculation of the number of business days between those two dates.
If the user changes either of those two dates, I need the value of the Days column to re-calculate accordingly. I already have a method called GetBusinessDayCount which will calculate the business days between two dates that are passed as parameters. It involves calls to the database so I can't use JavaScript code.
I guess what I really need here is some event to be triggered when either of the dates change in any of the rows, so that I can call my GetBusinessDayCount method. I'm not sure how to implement this. Would it involve creating a custom event (something that I'm not terribly familiar with), or is there something else that coule be done?
Thx.
I have a GridView that is always available for editing (i.e. user is always in edit mode and does not need to click a button for each row in order to edit). Each row contains two date fields that are modifiable, and a Days field that is not modifiable, but is instead a calculation of the number of business days between those two dates.
If the user changes either of those two dates, I need the value of the Days column to re-calculate accordingly. I already have a method called GetBusinessDayCount which will calculate the business days between two dates that are passed as parameters. It involves calls to the database so I can't use JavaScript code.
I guess what I really need here is some event to be triggered when either of the dates change in any of the rows, so that I can call my GetBusinessDayCount method. I'm not sure how to implement this. Would it involve creating a custom event (something that I'm not terribly familiar with), or is there something else that coule be done?
Thx.