Re: creating ExecuteQuery method



As understand from this discussion that TypeDescriptor can be used to
extend object to show columns in DataGridView easily.

Yes it can be done; but I wouldn't say easily. I have posted several
extensible object examples, but I'm not sure this is the best way to go
here. It introduces unnecessary complexity for something that can be already
be done in other ways.

I hoped that HyperDescriptor allows to add new properties for DataGridView
binding in the fly.

No; that isn't what it does. It replaces the standard reflection-based
(PropertyInfo) implementation

I'd like easily to visualise any SELECT command results for quick design
in scripts in customer sites like <snip>

Sounds like DataTable would do this job perfectly well. I'm a pragmatist...
why make life hard? At the end of the day, <T> implies a known data
structure (of type T) - not "make it up yourself"...

Do you want to see the result?

If it is somewhere easily accessible I might take a look... I'm not planning
on jumping through any hoops...

Marc


.


Loading