I have a gridview with courses to register in a semester with various fields like days(mon.tues..) and timing(1:30 to 2:30). A student has to select the courses by checking the checkbox and press the submit button. there are time clashes between few courses, I want to add the functionality where when one checkbox is checked then a method should be called where the timing of the other courses are compared with the selected one, and the same timing courses corresponding checkbox should be disabled.
gridview with itemtemplate checkboxex in asp.net
Hi please help me resolve this very urgent..
George OnofreiPosted Jan 18, 2011, 10:48 PM
lalithaPosted Jan 18, 2011, 5:11 PM
George OnofreiPosted Jan 18, 2011, 3:41 PM
lalithaPosted Jan 18, 2011, 10:33 AM
George OnofreiPosted Jan 18, 2011, 2:28 AM
you basically want a table (using gridview) to make a weekely table. In the Header/Footer you'd have: the hours/days of week and on the left or on the right: the days of the week/the hours. All you have to do then is put in the datagrid a simple checkbox and on code behind you can verify every column per row if it is checked or not (using the Checked Property for the Checkbox). Using this, you can provide a form of validity. Let's say a student has to attend 4 hours of math, but he checks 6 hours in a week. You can validate this and send a notification that he wants too much math :)). It's an idea. I'll give it some more thought. And pelase tell me if I've understood corectly what you want. Cheers!!!