Click here to Skip to main content
15,885,141 members

1 solution

You mean this ?
C#
private void DataGridView1_CellDoubleClick(Object sender, DataGridViewCellEventArgs e) {
    string str = DataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString();
    ListBox1.Items.Add(str);
}


-KR
 
Share this answer
 
Comments
Joshua Sabater 8-Oct-15 11:24am    
having an error. here's the link http://prntscr.com/8p4tks
ChrisCreateBoss 8-Oct-15 11:58am    
Tried his code and it worked very well. Try again.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900