[英]How to delete only the data in the rows (prevent the rows to be deleted) in datagridview
我试图删除行中的数据值,但它也删除了DataGridView中的行。
代码:
spSumGrid.Sheets [0] .Rows.Clear(); //删除表中的数据和行
But I want to delete only the data in the row..
请提供更多后端信息。 您可以在DataGridView数据源上使用LINQ,并通过此操作选择所需的行,而不是轻松删除。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.