Click here to Skip to main content
15,886,067 members
Home / Discussions / C#
   

C#

 
AnswerRe: Class Diagram relation issue Pin
Saira Tanwir18-Apr-07 22:27
Saira Tanwir18-Apr-07 22:27 
GeneralRe: Class Diagram relation issue Pin
Pete O'Hanlon19-Apr-07 2:06
mvePete O'Hanlon19-Apr-07 2:06 
AnswerRe: Class Diagram relation issue Pin
Saira Tanwir19-Apr-07 2:36
Saira Tanwir19-Apr-07 2:36 
QuestionDataGrid Pin
nuraprakash18-Apr-07 21:24
nuraprakash18-Apr-07 21:24 
AnswerRe: DataGrid Pin
baerten18-Apr-07 21:33
baerten18-Apr-07 21:33 
Questioncopying row in datagridview Pin
phantanagu18-Apr-07 21:10
phantanagu18-Apr-07 21:10 
AnswerRe: copying row in datagridview Pin
Sathesh Sakthivel18-Apr-07 21:19
Sathesh Sakthivel18-Apr-07 21:19 
AnswerRe: copying row in datagridview [modified] Pin
phantanagu18-Apr-07 22:08
phantanagu18-Apr-07 22:08 
My code is here
private void copyToolStripMenuItem_Click(object sender, EventArgs e)
{
DataObject obj = dataGridView1.GetClipboardContent();
str = obj.GetText(TextDataFormat.CommaSeparatedValue).Substring(1).Split(',');

}

private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
DataGridViewRow dgvRow = dataGridView1.Rows[0];
for (int i = 0; i < str.GetLength(0); i++)
dgvRow.Cells[i].Value = str[i];
dataGridView1.Rows.Add(dgvRow);
}
catch (Exception ex)
{

}
}

But it throws an exception "Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound"
I am very confused. Kindly help me. Thanks


It seem to be a solution or an answer.

QuestionSQLCommand parameters to prevent SQL injections Pin
GermanDM18-Apr-07 21:07
GermanDM18-Apr-07 21:07 
AnswerRe: SQLCommand parameters to prevent SQL injections Pin
Stefan Troschuetz18-Apr-07 21:11
Stefan Troschuetz18-Apr-07 21:11 
AnswerRe: DataGridView validation Pin
Sathesh Sakthivel18-Apr-07 21:14
Sathesh Sakthivel18-Apr-07 21:14 
GeneralRe: DataGridView validation Pin
7118-Apr-07 21:36
7118-Apr-07 21:36 
QuestionWeb Service Authentication Pin
Cheng Dehua18-Apr-07 20:42
Cheng Dehua18-Apr-07 20:42 
AnswerRe: Web Service Authentication Pin
Sathesh Sakthivel18-Apr-07 20:54
Sathesh Sakthivel18-Apr-07 20:54 
QuestionMaking a listView sub item clickable Pin
AngryC18-Apr-07 20:24
AngryC18-Apr-07 20:24 
AnswerRe: Making a listView sub item clickable Pin
Patrick Etc.19-Apr-07 4:42
Patrick Etc.19-Apr-07 4:42 
QuestionHow to add click event to a personalized ContextMenu? Pin
Khoramdin18-Apr-07 20:21
Khoramdin18-Apr-07 20:21 
AnswerRe: How to add click event to a personalized ContextMenu? Pin
Luc Pattyn19-Apr-07 0:05
sitebuilderLuc Pattyn19-Apr-07 0:05 
QuestionHow to deploye c# Application Pin
suveenmohan18-Apr-07 20:20
suveenmohan18-Apr-07 20:20 
AnswerRe: How to deploye c# Application Pin
Sathesh Sakthivel18-Apr-07 20:51
Sathesh Sakthivel18-Apr-07 20:51 
QuestionDrawing in picture box--C#/opengl help Pin
Raza568018-Apr-07 19:32
Raza568018-Apr-07 19:32 
AnswerRe: Drawing in picture box--C#/opengl help Pin
Christian Graus18-Apr-07 20:00
protectorChristian Graus18-Apr-07 20:00 
QuestionRead Word documents using stringreader? Pin
K.Ravich18-Apr-07 19:24
K.Ravich18-Apr-07 19:24 
AnswerRe: Read Word documents using stringreader? Pin
Sathesh Sakthivel18-Apr-07 19:45
Sathesh Sakthivel18-Apr-07 19:45 
QuestionForm closing or disposing Pin
EEmaan18-Apr-07 18:58
EEmaan18-Apr-07 18:58 

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.