472,143 Members | 1,418 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

Calculating the total of a column in a data grid: Master/detail

Help - Calculating the total of a column in a data grid --
when data grid is part of Master-Detail set-up

I have setup a Master-Detail form using Visual
Studio.Net. A ListBox is the (Master) and contains a list
of dates. The data grid (Details portion) contains the
details for a selected date (namely, a list of work codes
and hours spent).

I am trying to total the number of hours in the datagrid
(for the selected date (master)).

I tried looping through the data grid using 0 to
the 'VisibleRowCount' of the data grid. It worked fine,
until I discovered that it truly is counting only the rows
that the user sees in the data grid. (I guess that is
what they meant by 'VisibleRowCount').
Anyway, how do I go about summing up the total number of
hours (in my detail data grid), when the user clicks on
a particular date in my list box (Master).?
Thanks Much --- New to Visual Studio.Net
Nov 20 '05 #1
0 1878

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by The Bit Bandit | last post: by
2 posts views Thread by Christopher Weaver | last post: by
1 post views Thread by TENZEEL. | last post: by
8 posts views Thread by Doug Bell | last post: by
4 posts views Thread by =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.