I want to make a 1 column data grid in a windows form where I can copy paste data from an excel sheet.
I am able to create the data grid using visual studio but ctrl+c &V is not working while copying data from excel sheet.
-Sa
I want to make a 1 column data grid in a windows form where I can copy paste data from an excel sheet.
I am able to create the data grid using visual studio but ctrl+c &V is not working while copying data from excel sheet.
-Sa
See this to implement Ctrl+V shortcut.
Use
string txt = Clipboard.GetText();
to get the text from the Clipboard.
Excel will provide tab-separated values for each cell in the row, while rows are separated by \r\n. Insert it into your grid as you like.