使用MVC在Webgrid中添加空行或合并单元格 [英] Add a blank row or Merge a cell in Webgrid using MVC

查看:180
本文介绍了使用MVC在Webgrid中添加空行或合并单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用WebGrid根据条件动态合并行和列。如果可能的话我该如何实现呢?



TIA

Is it possible to merge rows and columns dynamically based on our condition by using WebGrid. If possible how can i achieve it?

TIA

推荐答案

是的,你可以合并行和列动态。首先,您需要获得行或列的Id。你可以通过检查WebGrid的元素来获得它。

以下链接你会想到实现它。

http://jsfiddle.net/djhU7/4/ [ ^ ]

http://stackoverflow.com / questions / 28628273 / merge-table-cells-using-jquery [ ^ ]

http://stackoverflow.com/questions/1294850/set-colspan-dynamically-with-jquery [ ^ ]
Yes, you can merge rows and columns dynamically. First you need to get Id of row or columns. You can get it by inspecting element of WebGrid.
Following links will you idea to achieve it.
http://jsfiddle.net/djhU7/4/[^]
http://stackoverflow.com/questions/28628273/merge-table-cells-using-jquery[^]
http://stackoverflow.com/questions/1294850/set-colspan-dynamically-with-jquery[^]


这篇关于使用MVC在Webgrid中添加空行或合并单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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