如何在Windows Appliction中删除datagridview中的行 [英] how to delete row in datagridview in Windows Appliction
本文介绍了如何在Windows Appliction中删除datagridview中的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友.我是.net中的Bigginer.请告诉我ans
hi Friend''s I am Bigginer in .net pls tell me ans
推荐答案
试试这个
dataGridView1.Rows.RemoveAt(0); //where 0 is the rowindex
另一种方法是
another method is
DataGridViewRow row = gridPre.Rows[0];
dataGridView1.Rows.Remove(row);
希望对您有帮助
Hope this helps
这篇关于如何在Windows Appliction中删除datagridview中的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文