如何使用Javascript向Gridview添加行 [英] How to Add a row to Gridview using Javascript

查看:65
本文介绍了如何使用Javascript向Gridview添加行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个下拉列表,下面有一个GridView.当用户从下拉列表中选择一个项目时,将相应的行添加到gridview.我正在使用Dot net framework 2.0


在这里,我将从数据库中提取所有项目到数据表中,并将数据表置于视图状态.当用户从下拉列表中选择一个项目时,它将从视图状态数据表中获取相应的行并填充gridview.

我希望成为客户端.如何使用javascript来实现这一目标?.
是否有任何类似于datatable的javascript对象?如果是的话,如何从数据库中填充它?.

I have a Dropdown list and below that there is a GridView . When user select an Item from the Dropdown list add corresponding row to the gridview.I am using Dot net framework 2.0


Here I am fetching all Items from the database into a data-table and put the data-table in view-state. When user select an Item from the dropdownlist it will get the corresponding row from the view-state-data-table and populate the gridview.

I wish to make it client side. How can I achieve this using javascript?.
Is there any javascript object similar to datatable?. if so how to populate it from database?.

推荐答案

从下一次开始,请提供您的代码.在这里你

向Gridview添加客户端插入更新删除功能 [ ^ ]
如何可以从客户端在网格视图中插入行(不回发)? [向Gridview添加客户端插入更新删除功能 [ ^ ]
将行动态添加到gridview [第2部分] [ ^ ]
用于GridView行级别的JavaScript [ ^ ]
From next time come with your code please. Here you go

Adding client side insert update delete functionality to a Gridview[^]
How to insert row in a gridview from the client side (without postback)?[^]
Adding client side insert update delete functionality to a Gridview[^]
Adding Rows dynamically to a gridview [Part 2][^]
JavaScript for GridView Row Level[^]


这篇关于如何使用Javascript向Gridview添加行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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