Click here to Skip to main content
15,889,865 members
Home / Discussions / C#
   

C#

 
GeneralRe: Printing in Different paper size Pin
eggie52-Jan-04 8:26
eggie52-Jan-04 8:26 
GeneralRe: Printing in Different paper size Pin
IntegraSoft2-Jan-04 8:33
IntegraSoft2-Jan-04 8:33 
GeneralRe: Printing in Different paper size Pin
eggie52-Jan-04 8:39
eggie52-Jan-04 8:39 
GeneralRe: Printing in Different paper size Pin
Mazdak2-Jan-04 8:42
Mazdak2-Jan-04 8:42 
GeneralRe: Printing in Different paper size Pin
Heath Stewart2-Jan-04 9:18
protectorHeath Stewart2-Jan-04 9:18 
GeneralRe: Printing in Different paper size Pin
IntegraSoft2-Jan-04 9:25
IntegraSoft2-Jan-04 9:25 
GeneralRe: Printing in Different paper size Pin
Heath Stewart2-Jan-04 9:31
protectorHeath Stewart2-Jan-04 9:31 
GeneralRe: Printing in Different paper size Pin
IntegraSoft2-Jan-04 9:47
IntegraSoft2-Jan-04 9:47 
GeneralRe: Printing in Different paper size Pin
Heath Stewart2-Jan-04 10:08
protectorHeath Stewart2-Jan-04 10:08 
GeneralRe: Printing in Different paper size Pin
IntegraSoft2-Jan-04 10:18
IntegraSoft2-Jan-04 10:18 
GeneralRe: Printing in Different paper size Pin
Heath Stewart2-Jan-04 10:31
protectorHeath Stewart2-Jan-04 10:31 
GeneralRe: Printing in Different paper size Pin
IntegraSoft2-Jan-04 10:52
IntegraSoft2-Jan-04 10:52 
GeneralRe: Printing in Different paper size Pin
Heath Stewart2-Jan-04 11:00
protectorHeath Stewart2-Jan-04 11:00 
GeneralRichTextBox Pin
Luther Baker2-Jan-04 8:07
Luther Baker2-Jan-04 8:07 
GeneralRe: RichTextBox Pin
Heath Stewart2-Jan-04 9:15
protectorHeath Stewart2-Jan-04 9:15 
GeneralRe: RichTextBox Pin
Luther Baker2-Jan-04 10:14
Luther Baker2-Jan-04 10:14 
QuestionHow to send mail using SMTP Pin
gr8tushar2-Jan-04 7:55
gr8tushar2-Jan-04 7:55 
AnswerRe: How to send mail using SMTP Pin
eggie52-Jan-04 8:20
eggie52-Jan-04 8:20 
AnswerRe: How to send mail using SMTP Pin
Mazdak2-Jan-04 8:31
Mazdak2-Jan-04 8:31 
AnswerRe: How to send mail using SMTP Pin
Heath Stewart2-Jan-04 9:14
protectorHeath Stewart2-Jan-04 9:14 
GeneralRe: How to send mail using SMTP Pin
gr8tushar2-Jan-04 19:44
gr8tushar2-Jan-04 19:44 
GeneralRe: How to send mail using SMTP Pin
Heath Stewart2-Jan-04 19:47
protectorHeath Stewart2-Jan-04 19:47 
QuestionHOW TO Create a Summary Row For a Windows Form DataGrid by Using C# ???? Pin
zfeng_my2-Jan-04 3:02
zfeng_my2-Jan-04 3:02 
AnswerRe: HOW TO Create a Summary Row For a Windows Form DataGrid by Using C# ???? Pin
Mazdak2-Jan-04 3:46
Mazdak2-Jan-04 3:46 
AnswerRe: HOW TO Create a Summary Row For a Windows Form DataGrid by Using C# ???? Pin
Heath Stewart2-Jan-04 5:45
protectorHeath Stewart2-Jan-04 5:45 
This has been asked before, and as I told the previous person, you should consider using Label controls below the DataGrid. If you have a data-bound DataGrid and programmatically add a row, you must do so to the DataGrid.DataSource, which will add the row. If you then update that data source (say, to a database or XML file), it will contain that summary row. This is hardly what you want, I assume.

So, just use some values below it. That's what we do in our application, and there are many other benefits as well. First, it separates the summary of columns making it easier to see, and it doesn't scroll or resize like a DataGrid could, thus hiding certain summations. Second, one rarely needs to summarize ALL fields (for example, how would you summarize a name field for a person, company, etc.?), so just include enough labels to summarize what you need.

To summarize columns, just enumerate the rows and keep track of what you need to, then assign that value (or whatever) to a label that shows the value (or, if you use one label for the text label and value, use String.Format or something to assign the "Label: Value", "Label=Value", or whatever format to the Label.Text property).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.