Link to home
Start Free TrialLog in
Avatar of Craig Lambie
Craig LambieFlag for Australia

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
Avatar of naspinski
naspinski
Flag of United States of America image

This all comes down to personal preference - all approaches will work.

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.
Avatar of Craig Lambie

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?

ASKER CERTIFIED SOLUTION
Avatar of naspinski
naspinski
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Thanks for that, exactly what I was after.