如何在c#中仅显示文本框中的数据到gridview [英] how to show only data from textboxs to the gridview in c#

查看:145
本文介绍了如何在c#中仅显示文本框中的数据到gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

像这样;

i有8个文本框和1个gridview。

当我从一些文本和网格填充文本框时在列中显示此文本等等on。



plz,PLZ,任何人都可以帮助我

解决方案

它只能使用魔法,

因为网格视图显示数据时,数据是数据集还是数据库中,或者是列表中,

但是你希望在一个文本框填充后,网格视图填充atomatically,



一个解决方案是使用更新面板和autopost返回所有文本框,填写第一个文本框后,将此值存储在数据虚拟数据表中然后放入这个虚拟数据表到表格网格视图


like this;
i have 8 textboxs,and 1 gridview.
when i fill the textbox from the some text and grid show me this text in the column and so on.

plz,plz, Anyone Can Help Me

解决方案

it is only possible using magic,
because grid view show data when, data is either data set or in database, or in a list,
but you want that after one text box fill, grid view fill atomatically,

one solution is use update panel and autopost back to all text box, and after filling first text box you store this value in data virtual data table and then put this vitual data table to table grid view


这篇关于如何在c#中仅显示文本框中的数据到gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆