Click here to Skip to main content
16,016,290 members
Home / Discussions / C#
   

C#

 
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 
QuestionRe: FileSystemWatcher Pin
hamidkhan24-Apr-07 1:13
hamidkhan24-Apr-07 1:13 
QuestionBindingSources and DataRelations Pin
~~~Johnny~~~23-Apr-07 9:39
~~~Johnny~~~23-Apr-07 9:39 
AnswerRe: BindingSources and DataRelations Pin
~~~Johnny~~~23-Apr-07 10:09
~~~Johnny~~~23-Apr-07 10:09 
QuestionType property handling? Pin
mike montagne23-Apr-07 8:32
mike montagne23-Apr-07 8:32 
AnswerRe: Type property handling? Pin
BoneSoft23-Apr-07 10:54
BoneSoft23-Apr-07 10:54 
GeneralRe: Type property handling? Pin
BoneSoft23-Apr-07 10:57
BoneSoft23-Apr-07 10:57 
QuestionSendMessage API call Pin
abalfazl23-Apr-07 8:25
abalfazl23-Apr-07 8:25 
QuestionEZW (Embedded Zerotree Wavelet algorithm) = C# Pin
trungpt_hut23-Apr-07 8:20
trungpt_hut23-Apr-07 8:20 
AnswerRe: EZW (Embedded Zerotree Wavelet algorithm) = C# Pin
Christian Graus23-Apr-07 11:04
protectorChristian Graus23-Apr-07 11:04 

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.