Click here to Skip to main content
15,922,166 members
Home / Discussions / C#
   

C#

 
QuestionShow a PDF file in a MDI application of C# Pin
BinName5-Dec-07 22:58
BinName5-Dec-07 22:58 
GeneralRe: Show a PDF file in a MDI application of C# Pin
CKnig5-Dec-07 23:22
CKnig5-Dec-07 23:22 
GeneralDataGridview help Pin
sindhutiwari5-Dec-07 22:56
sindhutiwari5-Dec-07 22:56 
GeneralRe: DataGridview help Pin
dan!sh 5-Dec-07 22:59
professional dan!sh 5-Dec-07 22:59 
GeneralRe: DataGridview help Pin
suyuan19845-Dec-07 23:07
suyuan19845-Dec-07 23:07 
GeneralRe: DataGridview help Pin
Gopal.S5-Dec-07 23:31
Gopal.S5-Dec-07 23:31 
QuestionHow to change the initial value of DataSet.CaseSensitive (in .NET 2.0, it is false by default) Pin
shintaerp5-Dec-07 22:12
shintaerp5-Dec-07 22:12 
QuestionC# and microthreads - more info wanted Pin
Geert Masureel5-Dec-07 22:10
Geert Masureel5-Dec-07 22:10 
QuestionTCP Class - Send Function Pin
Programm3r5-Dec-07 21:25
Programm3r5-Dec-07 21:25 
GeneralRe: TCP Class - Send Function Pin
CKnig5-Dec-07 23:27
CKnig5-Dec-07 23:27 
GeneralRe: TCP Class - Send Function Pin
Programm3r6-Dec-07 0:32
Programm3r6-Dec-07 0:32 
QuestionRegarding parameterizedthreadstart??? Pin
Ron.S5-Dec-07 21:24
Ron.S5-Dec-07 21:24 
AnswerRe: Regarding parameterizedthreadstart??? Pin
CKnig5-Dec-07 23:26
CKnig5-Dec-07 23:26 
QuestionAbout Combobox's ValueMember and DisplayMember Pin
Zerox MXI5-Dec-07 20:07
Zerox MXI5-Dec-07 20:07 
GeneralRe: About Combobox's ValueMember and DisplayMember Pin
CKnig5-Dec-07 20:13
CKnig5-Dec-07 20:13 
GeneralRe: About Combobox's ValueMember and DisplayMember Pin
Zerox MXI5-Dec-07 20:23
Zerox MXI5-Dec-07 20:23 
GeneralRe: About Combobox's ValueMember and DisplayMember Pin
CKnig5-Dec-07 23:30
CKnig5-Dec-07 23:30 
GeneralRe: About Combobox's ValueMember and DisplayMember Pin
Zerox MXI6-Dec-07 3:10
Zerox MXI6-Dec-07 3:10 
Questionhow to export datagridview contents to excel Pin
Nitin Raj5-Dec-07 19:56
Nitin Raj5-Dec-07 19:56 
GeneralRe: how to export datagridview contents to excel Pin
DKalepu5-Dec-07 22:49
DKalepu5-Dec-07 22:49 
QuestionHow To : coerce a ref to an enum into a ref to an int. Pin
urbane.tiger5-Dec-07 18:59
urbane.tiger5-Dec-07 18:59 
AnswerRe: How To : coerce a ref to an enum into a ref to an int. Pin
Skippums6-Dec-07 10:39
Skippums6-Dec-07 10:39 
Question[Message Deleted] Pin
rockz...5-Dec-07 18:52
rockz...5-Dec-07 18:52 
GeneralRe: Serial No. for rows in datagrid Pin
Sathesh Sakthivel5-Dec-07 19:00
Sathesh Sakthivel5-Dec-07 19:00 
Hi you have some options.
1) use the fields in your datagrid. Attention, this method might be slow.
Just itterate throug your rows:
<br />
<br />
<br />
foreach (DataGridViewRow row in settingDataGridView.Rows)<br />
<br />
            { <br />
                runningtotal += decimal.Parse(row.Cells[columnIndex].ToString();<br />
            }<br />


2) get the data from the data behind the DataGridView

<br />
documentlinebindingsource.EndEdit();<br />
<br />
foreach (DataRow row in ds.DocumentLine.Select("documentId=" + documentId))<br />
<br />
     {<br />
<br />
    if (row.RowState != DataRowState.Deleted)<br />
<br />
             {<br />
                 ds.DocumentLineRow docLineRow = (ds.DocumentLineRow)row;<br />
<br />
...<br />
runningtotal += row.documentLineTotal;<br />
<br />
}<br />
<br />
}<br />
<br />


Hope this will help you.

SSK.

Anyone who says sunshine brings happiness has never danced in the rain.

GeneralRe: Serial No. for rows in datagrid Pin
dan!sh 5-Dec-07 19:28
professional dan!sh 5-Dec-07 19:28 

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.