处于只读状态的数据网格行 [英] datagrid rows in read only state

查看:107
本文介绍了处于只读状态的数据网格行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在调用edit事件时datagrid行处于只读状态.由于当时我也需要滚动条,因此我无法禁用datagrid.所以请帮助我


I want datagrid rows in read only state when edit event is called.I cant disable the datagrid at that time as i need scrollbar also..So please help me


Private Sub Button8_Click(ByVal sender As Object, _
    ByVal e As System.EventArgs) Handles Button8.Click

    For Each band As DataGridViewBand In dataGridView.Columns
        band.ReadOnly = True
    Next
End Sub



我尝试过此方法,但没有效果..plz建议



I hv tried this but no effect..Plz suggest

推荐答案

亲爱的索非亚,

请参考您之前的问题:-

处于禁用状态的数据网格行 [
Dear Sofia,

Please refer to your earlier question:-

datagrid rows in disabled state[^]


这篇关于处于只读状态的数据网格行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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