如何禁用GridView中的特定行 [英] How to disable specific rows in GridView

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

问题描述

我想在VB.NET中禁用GridView的特定行。

I want to disable specific rows of GridView in VB.NET.

我尝试过,但是所有行都被禁用。

I have tried, but all rows got disabled.

For a As Integer = indexSelected To DataGridDefectProduct.Rows.Count - 1
    DataGridDefectProduct.Rows(a).Enabled = False
Next

错误

DataGridDefectProduct.Rows(a).Enabled = False

请建议是否还有其他方法可以

Please suggest if there is any alternative ways to do this.

推荐答案


  • 您必须更改 ReadOnly您的属性

    • you have to change the ReadOnly property of your Row

      For a As Integer = indexSelected To DataGridDefectProduct.Rows.Count - 1
        DataGridDefectProduct.Rows(a).ReadOnly = False
      Next
      


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

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