我们可以将一列设为只读吗?我们可以将后面的colr设置为下面的代码为一列... Ken Tucker [MVP]" < VB *** @ bellsouth.net>在消息中写道新闻:英国************* @ TK2MSFTNGP09.phx.gbl ... Hi Ken, Can we set one column to read only? We can set the back colr and such inthe code below for one column... "Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message news:uK*************@TK2MSFTNGP09.phx.gbl... 要设置行高,请调整tablestyle preferredrowheight。要使a Hi, To set the row height adjust the tablestyle preferredrowheight. To makea列readonly将datagridtextboxcolumn readonly属性设置为true。 Ken ----- ---------- scorpion53061 < SC **************************** @ yahoo.com>写在 column readonly set the datagridtextboxcolumn readonly property to true. Ken --------------- "scorpion53061" <sc****************************@yahoo.com> wrote in 消息新闻:u7 ************** @ TK2MSFTNGP09.phx.gbl ... news:u7**************@TK2MSFTNGP09.phx.gbl...在这段代码中,我需要做些什么才能使只读和高度 In this code what do I have to do to get the read only and Height 属性工作?这将进入数据网格。 Dim BOOKSLABEL As New ColoredTextBoxColumn BOOKSLABEL.TextBox.BackColor = System.Drawing.SystemColors.Desktop BOOKSLABEL.MappingName =" Label" BOOKSLABEL.HeaderText =" Possible Fields" BOOKSLABEL.Alignment = Horizo​​ntalAlignment.Left BOOKSLABEL.TextBox.Height = 150 BOOKSLABEL.Width = 200 BOOKSLABEL.TextBox.ReadOnly = True property to work? this is going into a datagrid. Dim BOOKSLABEL As New ColoredTextBoxColumn BOOKSLABEL.TextBox.BackColor = System.Drawing.SystemColors.Desktop BOOKSLABEL.MappingName = "Label" BOOKSLABEL.HeaderText = "Possible Fields" BOOKSLABEL.Alignment = HorizontalAlignment.Left BOOKSLABEL.TextBox.Height = 150 BOOKSLABEL.Width = 200 BOOKSLABEL.TextBox.ReadOnly = True 这篇关于数据网格问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-24 09:34