Windows forms datagrid - Totals row

G

Giri

Any ideas for a best approach on how best to achieve this? (the footer is
what i'd use in the ASP.NET Datagrid... (which is many ways is much better
than the windows forms datagrid, which is strange if you think about it ! ))

Thanks
 
J

Jeremy Cowles

Giri said:
Any ideas for a best approach on how best to achieve this? (the footer is
what i'd use in the ASP.NET Datagrid... (which is many ways is much better
than the windows forms datagrid, which is strange if you think about it ! ))

Just create the footer manually (with labels/textboxes/panels etc), and make
your calculations based on the data from the DataTable. Then update it when
key events are fired by the DataTable (when stuff changes).

HTH,
Jeremy
 
G

Giri

I had thought of that but such an approach t is never going to line up
properly with the columns in the dataset if the user changes column widths
(unless I start wiring up loads of layout code).. is that the best windows
forms datagrid can offer out of the box ? Yuk ! Give me ASP.NET any
day.... :)
 
J

Jeremy Cowles

Giri said:
I had thought of that but such an approach t is never going to line up
properly with the columns in the dataset if the user changes column widths
(unless I start wiring up loads of layout code).. is that the best windows
forms datagrid can offer out of the box ? Yuk ! Give me ASP.NET any
day.... :)

Like anything there is a learning curve. I personally don't like ASP.NET or
Web GUIs and appreciate the ability to use rubber-band regions for
multi-select (seriously bothers me that you cant do that in ASP/Web). Both
have advantages and disadvantages, the more you use somthing, the easier it
gets.

Jeremy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top