Windows forms datagrid - Totals row

  • Thread starter Thread starter Giri
  • Start date Start date
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
 
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
 
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.... :-)
 
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
 
Back
Top