通过Combobox获取GridView数据 [英] Get GridView data through Combobox
本文介绍了通过Combobox获取GridView数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello Guys,
i想询问如何以gridview形式获取数据框中的数据选择
如果我从组合框中选择文本如何选择获取表格gridview中的数据我知道这很简单,但我是asp.net的新手
谢谢。
Hello Guys,
i would like to ask about how to get data in gridview form selecting of the combobox
how if i choose text from combobox this selection get the table data in gridview i know it easy but i'm new in asp.net
thanks.
推荐答案
嘿,试试这个
hey, try this
private void comboBox1_SelectedIndexChanged([...])
{
this.dataGridView1.columns[0].Rows[0].Add(this.comboBox1.Text);
}
我希望,我可以帮助你。
I hope, I could help you.
这篇关于通过Combobox获取GridView数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文