Click here to Skip to main content
15,896,727 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to impose Expire Date on MS Office files? [modified] Pin
sachinkalse13-Jun-07 16:36
sachinkalse13-Jun-07 16:36 
QuestionVery basic help with C++ linker/logic errors Pin
wertyou23-Apr-07 17:05
wertyou23-Apr-07 17:05 
AnswerRe: Very basic help with C++ linker/logic errors Pin
Patrick Etc.23-Apr-07 17:27
Patrick Etc.23-Apr-07 17:27 
GeneralRe: Very basic help with C++ linker/logic errors Pin
wertyou23-Apr-07 17:37
wertyou23-Apr-07 17:37 
GeneralRe: Very basic help with C++ linker/logic errors Pin
Patrick Etc.23-Apr-07 17:45
Patrick Etc.23-Apr-07 17:45 
GeneralRe: Very basic help with C++ linker/logic errors Pin
wertyou23-Apr-07 18:04
wertyou23-Apr-07 18:04 
GeneralRe: Very basic help with C++ linker/logic errors Pin
Patrick Etc.23-Apr-07 18:27
Patrick Etc.23-Apr-07 18:27 
GeneralRe: Very basic help with C++ linker/logic errors Pin
wertyou23-Apr-07 18:42
wertyou23-Apr-07 18:42 
GeneralRe: Very basic help with C++ linker/logic errors Pin
Patrick Etc.23-Apr-07 18:45
Patrick Etc.23-Apr-07 18:45 
GeneralRe: Very basic help with C++ linker/logic errors Pin
wertyou24-Apr-07 14:53
wertyou24-Apr-07 14:53 
GeneralRe: Very basic help with C++ linker/logic errors Pin
Patrick Etc.24-Apr-07 15:09
Patrick Etc.24-Apr-07 15:09 
GeneralRe: Very basic help with C++ linker/logic errors Pin
wertyou24-Apr-07 15:30
wertyou24-Apr-07 15:30 
GeneralRe: Very basic help with C++ linker/logic errors Pin
Patrick Etc.24-Apr-07 15:49
Patrick Etc.24-Apr-07 15:49 
QuestionHow to enable internet explorer's "Disable script debugging option" thru code? Pin
engsrini23-Apr-07 16:25
engsrini23-Apr-07 16:25 
AnswerRe: How to enable internet explorer's "Disable script debugging option" thru code? Pin
Christian Graus23-Apr-07 16:41
protectorChristian Graus23-Apr-07 16:41 
GeneralRe: How to enable internet explorer's "Disable script debugging option" thru code? Pin
engsrini23-Apr-07 17:06
engsrini23-Apr-07 17:06 
Questionneed your help about datagridview Pin
phantanagu23-Apr-07 16:05
phantanagu23-Apr-07 16:05 
hi,
My problem is that my boss told me he didn't want to everytime add a new row to datagridview he must provide new values for new row's cell. Actually. in an added row, only one or two cell need changing values, others are unchangeable. He did want to copy an existing row and paste as new row as well as change the needed values without appearing errors
I tried to use getClipboardContent() method to manually add values of an existing row to a new row but its not working. I think everybody here could help me solve this by showing me how to copy a gridview row and paste as a new row without errors or suggest me a new way to solve this. Thanks in advance
[my code]
string[] str;<br />
        private void copyToolStripMenuItem_Click(object sender, EventArgs e)<br />
        {<br />
           DataObject obj = dataGridView1.GetClipboardContent();<br />
           str = obj.GetText(TextDataFormat.CommaSeparatedValue).Substring(1).Split(',');<br />
        }<br />
<br />
        private void pasteToolStripMenuItem_Click(object sender, EventArgs e)<br />
        {<br />
            try<br />
            {<br />
                DataGridViewRow dgvRow = dataGridView1.Rows[0];<br />
                for (int i = 1; i < str.GetLength(0); i++)<br />
                    dgvRow.Cells[i].Value = str[i];<br />
                dataGridView1.Rows.Add(dgvRow);<br />
            }<br />
            catch (Exception ex)<br />
            {<br />
                MessageBox.Show(ex.Message);<br />
            }<br />
        }



It seem to be a solution or an answer.

QuestionAppend WMV Files Pin
Muhammad Chitrali23-Apr-07 11:48
Muhammad Chitrali23-Apr-07 11:48 
AnswerRe: Append WMV Files Pin
Patrick Etc.23-Apr-07 14:40
Patrick Etc.23-Apr-07 14:40 
QuestionProblem with execute Stored Procedure from My app. Pin
hdv21223-Apr-07 11:05
hdv21223-Apr-07 11:05 
AnswerRe: Problem with execute Stored Procedure from My app. Pin
Colin Angus Mackay23-Apr-07 11:43
Colin Angus Mackay23-Apr-07 11:43 
AnswerRe: Problem with execute Stored Procedure from My app. Pin
Guffa23-Apr-07 13:54
Guffa23-Apr-07 13:54 
QuestionFileSystemWatcher Pin
hamidkhan23-Apr-07 10:41
hamidkhan23-Apr-07 10:41 
AnswerRe: FileSystemWatcher Pin
Dave Kreskowiak23-Apr-07 15:22
mveDave Kreskowiak23-Apr-07 15:22 
AnswerRe: FileSystemWatcher Pin
Keshav V. Kamat23-Apr-07 23:46
Keshav V. Kamat23-Apr-07 23:46 

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.