1. 的绑定形式... //展示列 '> //编辑列 '>
分类:
其他好文 时间:
2016-01-05 20:53:51
阅读次数:
148
有些时候,需要多表关联查询,使用SqlDataProvider比较灵活Controller中use yii\data\SqlDataProvider;$dataProvider = new SqlDataProvider([ 'sql' =>$sql, 'totalCount' =>...
分类:
其他好文 时间:
2016-01-05 18:12:08
阅读次数:
265
今天我在PowerShell.com看到一篇文章,是关于Gridview的应用,觉得挺好,决定自己尝试一下。但是实际操作的时候却失败了,然后开始了漫长的排错。http://powershell.com/cs/blogs/tips/archive/2012/01/13/create-own-driver-tool.aspx首先我们运行一下,报错如下,说”状态”..
分类:
系统相关 时间:
2016-01-05 15:44:14
阅读次数:
252
前几天写了点击GRIDVIEW的条目,能够显示他在LISTVIEW中的位置,当时的处理是在ListView的适配器里的GetView方法里每次都new GridView的onItemClickListener,这样显然是不合理的,/**GridVIew的条目点击监听*/ private GvO...
分类:
其他好文 时间:
2016-01-04 11:36:23
阅读次数:
977
在Form中添加如下代码即可 protected override void OnShown(EventArgs e) { base.OnShown(e); gdv.OptionsFind.AlwaysVisible = fal...
usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Linq;usingSystem.Runtime.CompilerServices;usingSystem.Text;usingSystem.Web;usingSystem.Web.Compilation;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;namespaceWeb{//作者:林宏权2015/1..
分类:
其他好文 时间:
2015-12-31 21:05:03
阅读次数:
284
kartik-v/yii2-grid文档http://demos.krajee.com/grid在win7下 composer require kartik-v/yii2-grid "@dev"在vender下多了kartik-v,kartik-v下yii2-export,yii2-grid,yi....
分类:
编程语言 时间:
2015-12-31 10:29:56
阅读次数:
302
这几天要在ListView条目中嵌套GridView,首先按照网上说的,自定义一个GridView,重写OnMearue方法啥的,按照网上的来就行,重点:在ListView的适配器的getView()方法中,holder.gv.setTag(position);//给当前的GridView设置一个位...
分类:
其他好文 时间:
2015-12-31 10:28:03
阅读次数:
177
//这里checked全为falseprotected void btnOK_Click1(object sender, EventArgs e) { for (int i = 0; i < this.People.Rows.Count; i++) ...
分类:
Web程序 时间:
2015-12-30 13:14:52
阅读次数:
165