gobinath said:
Thanks All for the reply.
I'm just experimenting with the dataset stuff for the new UI's we are
going to develop.
If I associate the datatable with the datagrid, setting the datatablestyle
to delete a few columns, will there be any overhead while I'm updating the
columns which are not shown(ie deleted) from the datagrid.
Yes, but the overhead is trivial. And it's not something that you would do
in a loop for instance, typically you'd set it whenever the form loads or
the control loads - so the tiny performance hit honestly isn't a real issue.
Also interested in knowing why the column elimination is not possible. If
you can refer to some article or something. It would be of great help.
My guess is b/c there's more important issues at bat that people are
clammoring for. I agree, it would be nice but in most instances the need
for this to happen is because of UI concerns and as I mentioned originally,
there are plenty of ways to address it if the need is solely based on UI
reasons. Otherwise, you can just iterate through the view and only address
whatever columns you needed and just ignore the rest of them. If you were
able to remove columns, you'd definitely need to have either a different
constructor or you'd have to call Delete or something for each one. This
wouldn't be very efficient and unless you did it in the constructor, it
would be pretty messy. Someday down the road there may be a dataview that
can 'see' more than one table or allow you to specify the columns you want,
but there are so many other things they're working on that I wouldn't hold
me breath. Not that your point isn't valid, it's just that you aren't
really stopped from doing anything necessary b/c of the current limitation -
and there are some other areas that get in the way of how people do things.