如何使用c#中的字符串数组的每个值从文本框添加文本 [英] how to add text from textbox with each value of string array in c#
问题描述
这个例子就是我想要做的:
string [] str = {ram,shyam, geeta}
textbox text + string array / object = datagridview rows
hello + ram = hello ram
+ shyam =你好shyam
+ geeta =你好geeta
请帮帮我。
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.
这篇关于如何使用c#中的字符串数组的每个值从文本框添加文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!