Craig Lambie
asked on
Best Practice question - datagridview or table
Hi Experts,
A quick question. I am looking at creating a dynamic list of "options" which someone will be able to select, on / off according to their preference.
I am wondering if the c# world what is best practice here, a DatagridView with the check boxes column 2, with appropriate change events updating the Db; or
Dynamically building a table with checkboxes in column 2.
Thoughts?
Thanks
C
A quick question. I am looking at creating a dynamic list of "options" which someone will be able to select, on / off according to their preference.
I am wondering if the c# world what is best practice here, a DatagridView with the check boxes column 2, with appropriate change events updating the Db; or
Dynamically building a table with checkboxes in column 2.
Thoughts?
Thanks
C
ASKER
don't you lose the value of ajax for .net if you use jquery?
Maybe I am missing something, but surely writing an aspx page to handle ajax calls is "more" work than using update panels and built in ajax that comes with all asp controls?
Maybe I am missing something, but surely writing an aspx page to handle ajax calls is "more" work than using update panels and built in ajax that comes with all asp controls?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also, don't forget that MS themselves have been pushing jquery as it sbips with visual studio and they even contribute to the source code.
ASKER
Thanks for that, exactly what I was after.
Personally I would build it with a repeater so you have full control and your html doesn't get out of control. Then simply use jQuery (or whatever you use for js) and deal with the event that way. Your html will be much cleaner with a repeater, and it is generally easier to work with if you are writing your own ajax calls.