如何从GridView中删除空行 [英] How to remove empty row from gridview

查看:91
本文介绍了如何从GridView中删除空行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

当我插入记录并在gridview中显示这些记录时,在window应用程序中出现问题.在gridview中,它会自动取一个空行.我也用

Hello All,

I have a problem in window application when I insert record and display these record in gridview the in gridview its take automatically one empty row. And I also use

dataGridView1.AllowUserToAddRows = false;



请给我其他解决方案

在此先感谢,
Sahil



Please give me some another solution

Thanks in Advance,
Sahil

推荐答案

我认为您绑定到网格的数据源中存在问题.请检查数据表或数据集在网格数据源中应用的内容.可能最后会写成空行.
i think the problem in the datasource what you bind to the grid.please check the datatable or dataset what you applied in grid datasource. it may written empty row at last.


尝试
http://www. dotnetspider.com/forum/306013-Deleting-empty-rows-from-gridview-at-runtym-......pageload.aspx [ http://gcsujai.blogspot.in/2012/07/addremove-gridview- rows-dynamically-in.html [ ^ ]
Try
http://www.dotnetspider.com/forum/306013-Deleting-empty-rows-from-gridview-at-runtym-......pageload.aspx[^]
http://gcsujai.blogspot.in/2012/07/addremove-gridview-rows-dynamically-in.html[^]



这篇关于如何从GridView中删除空行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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