P
Phil H
Dear All
On reading of the problems people are complaining about with such
controls as GridView, FormView etc I wonder whether they have
considered that maybe, just maybe, they have simply made the wrong
choice!
The above mentioned controls are at their best when they minimise the
amount of code required for editing, inserting and deleting data.
Fine! I have no hestation in using them myself when their default
behaviour fits the bill. But I have to question this when it becomes
necessary to write reams of code in the event handlers to twist the
normal behaviour and make them do what is actually required.
These controls are cleverly designed to save time and effort and all
credit to their designers, but anyone engaging in development work
must also understand that they are not the last word on the subject.
It is quite possible (and not all that complicated) to use ordinary
stand alone controls (for single record data forms) or DataList and
Repeater controls (for rendering multiple records). Even these latter
controls can be emulated with a table control and iteration with
DataReaders if necessary.
Just a thought. Comments welcome.
On reading of the problems people are complaining about with such
controls as GridView, FormView etc I wonder whether they have
considered that maybe, just maybe, they have simply made the wrong
choice!
The above mentioned controls are at their best when they minimise the
amount of code required for editing, inserting and deleting data.
Fine! I have no hestation in using them myself when their default
behaviour fits the bill. But I have to question this when it becomes
necessary to write reams of code in the event handlers to twist the
normal behaviour and make them do what is actually required.
These controls are cleverly designed to save time and effort and all
credit to their designers, but anyone engaging in development work
must also understand that they are not the last word on the subject.
It is quite possible (and not all that complicated) to use ordinary
stand alone controls (for single record data forms) or DataList and
Repeater controls (for rendering multiple records). Even these latter
controls can be emulated with a table control and iteration with
DataReaders if necessary.
Just a thought. Comments welcome.