Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello everyone. i am developing a excel plugin. i have a widow form which contains textbox, listbox ,datagridview and a button. in listbox i make a list of all column headers like A,B,C,etc. from excel. when i select 'A' from listbox ,it will select all the usedrange values of A from excel. now i want that when i select from listbox then it will select that column values and convert into string array or object (positively i do not what should it). this string array should be add with my text as i write in textbox and show in datagridview rows. thanks for any help in advance.
This example is what i want to do:

string[] str={ram,shyam,geeta}

textbox text + string array/object = datagridview rows

hello + ram = hello ram
+ shyam = hello shyam
+ geeta = hello geeta

please help me.
Posted
Updated 1-Apr-14 22:21pm
v5
Comments
Maciej Los 2-Apr-14 15:49pm    
What is your exact question?
What have you done? Where are you stuck?
Subramanyam Shankar 16-Mar-15 12:45pm    
you logic is correct .do a string concatenation of text enter with the text in string array and reload it to the datagridview rows. Where are you stuck? You need the code ?

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