I have a Delphi application using DevExpress cxGrid (which is connected to database).
I require to be able to copy-paste data from Excel into the grid.
Is this possible? If so, how to do it, which additional components do i need?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check the format with
Clipboard.HasFormat(CF_TEXT).Extract the text with
Clipboard.AsText.Split into rows with
StringList.Text := Clipboard.AsText. Each item in the string list is now a row from the clipboard.Split each row into individual cells using a Split function: