数据网格问题 [英] Datagrid Problem
问题描述
在这段代码中,我需要做些什么来获取只读和高度属性
才能工作?
这是进入数据网格。
Dim BOOKSLABEL As New ColoredTextBoxColumn
BOOKSLABEL.TextBox.BackColor = System.Drawing.SystemColors.Desktop
BOOKSLABEL.MappingName =" Label"
BOOKSLABEL.HeaderText ="可能的字段"
BOOKSLABEL.Alignment = HorizontalAlignment.Left
BOOKSLABEL.TextBox.Height = 150 >
BOOKSLABEL.Width = 200
BOOKSLABEL.TextBox.ReadOnly = True
In this code what do I have to do to get the read only and Height 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
推荐答案
设置行高调整tablestyle preferredrowheight。要生成一个
列,只需将datagridtextboxcolumn readonly属性设置为true。
Ken
-------- -------
" scorpion53061" < SC **************************** @ yahoo.com>在留言中写道
新闻:u7 ************** @ TK2MSFTNGP09.phx.gbl ...
Hi,
To set the row height adjust the tablestyle preferredrowheight. To make a
column readonly set the datagridtextboxcolumn readonly property to true.
Ken
---------------
"scorpion53061" <sc****************************@yahoo.com> wrote in message
news:u7**************@TK2MSFTNGP09.phx.gbl...
在这段代码中做什么我必须做的是让只读和高度属性工作?
这是进入数据网格。
Dim BOOKSLABEL As New ColoredTextBoxColumn
BOOKSLABEL.TextBox .BackColor = System.Drawing.SystemColors.Desktop
BOOKSLABEL.MappingName =" Label"
BOOKSLABEL.HeaderText ="可能的字段"
BOOKSLABEL.Alignment = HorizontalAlignment.Left
BOOKSLABEL.TextBox.Height = 150
BOOKSLABEL.Width = 200
BOOKSLABEL.TextBox.ReadOnly = True
In this code what do I have to do to get the read only and Height 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
嗨肯,
我们可以将一列设置为只读吗?我们可以在下面的
代码中为一列设置后面的colr ...
" Ken Tucker [MVP]" < VB *** @ bellsouth.net>在消息中写道
news:uK ************* @ TK2MSFTNGP09.phx.gbl ...
Hi Ken,
Can we set one column to read only? We can set the back colr and such in the
code below for one column...
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uK*************@TK2MSFTNGP09.phx.gbl...
设置行高调整tablestyle preferredrowheight。要使一个
列只读,请将datagridtextboxcolumn readonly属性设置为true。
Ken
---------------
scorpion53061 < SC **************************** @ yahoo.com>写在
消息新闻:u7 ************** @ TK2MSFTNGP09.phx.gbl ...
Hi,
To set the row height adjust the tablestyle preferredrowheight. To make a
column readonly set the datagridtextboxcolumn readonly property to true.
Ken
---------------
"scorpion53061" <sc****************************@yahoo.com> wrote in message news:u7**************@TK2MSFTNGP09.phx.gbl...
在这段代码中我该怎么做得到只读和高度
属性工作?
这是进入数据网格。
Dim BOOKSLABEL As New ColoredTextBoxColumn
BOOKSLABEL.TextBox.BackColor =
System.Drawing.SystemColors.Desktop BOOKSLABEL.MappingName =" Label"
BOOKSLABEL.HeaderText ="可能的字段"
BOOKSLABEL.Alignment = HorizontalAlignment.Left
BOOKSLABEL.TextBox。高度= 150
BOOKSLABEL.Width = 200
BOOKSLABEL.TextBox.ReadOnly = True
In this code what do I have to do to get the read only and Height 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
>
是的。
Ken
--------- ---------------
" scorpion53061" < SC **************************** @ yahoo.com>在消息中写道
新闻:************* @ TK2MSFTNGP09.phx.gbl ...
Hi,
Yes.
Ken
------------------------
"scorpion53061" <sc****************************@yahoo.com> wrote in message
news:Of*************@TK2MSFTNGP09.phx.gbl...
嗨肯,>
我们可以将一列设为只读吗?我们可以将后面的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 in the 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 make a
列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 = HorizontalAlignment.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
这篇关于数据网格问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!