473,770 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Datagrid Problem

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 ColoredTextBoxC olumn
BOOKSLABEL.Text Box.BackColor = System.Drawing. SystemColors.De sktop
BOOKSLABEL.Mapp ingName = "Label"
BOOKSLABEL.Head erText = "Possible Fields"
BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
BOOKSLABEL.Text Box.Height = 150
BOOKSLABEL.Widt h = 200
BOOKSLABEL.Text Box.ReadOnly = True
Nov 20 '05
14 1304
Ken,

This code sample (I didnt get the vertical alignment working) but using an
Arraylist for the grid is very cool. Thank you for the sample.

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:uV******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

You would have to override the paint event. I posted an example here.
http://www.onteorasoftware.com/Datagrid.aspx#AnsDB2

Ken
----------------
"scorpion53 061" <sc************ *************** *@yahoo.com> wrote in message news:%2******** *******@TK2MSFT NGP10.phx.gbl.. .
I went wrong on the row...when teh user selected the row it would still
allow the user to delete it.
I dealt with that problem and the rest except one.

How if you make the grid cell size 40 for instance, make the text appear in
the middle of the cell aligned left?

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:ef******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

Dim BOOKSLABEL As New ColoredTextBoxC olumn
> BOOKSLABEL.Text Box.BackColor =

System.Drawing. SystemColors.De sktop
> BOOKSLABEL.Mapp ingName = "Label"
> BOOKSLABEL.Head erText = "Possible Fields"
> BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> BOOKSLABEL.Text Box.Height = 150
> BOOKSLABEL.Widt h = 200
> BOOKSLABEL.Read Only = True

Ken
------------
"scorpion53 061" <sc************ *************** *@yahoo.com> wrote in

message
news:O2******** ******@TK2MSFTN GP09.phx.gbl...
> HI ken,
>
> In this scenario,
> Dim BOOKSLABEL As New ColoredTextBoxC olumn
> BOOKSLABEL.Text Box.BackColor =

System.Drawing. SystemColors.De sktop
> BOOKSLABEL.Mapp ingName = "Label"
> BOOKSLABEL.Head erText = "Possible Fields"
> BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> BOOKSLABEL.Text Box.Height = 150
> BOOKSLABEL.Widt h = 200
> BOOKSLABEL.Text Box.ReadOnly = True
> how would you have made this column read only?
>
> "Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
> news:O0******** ********@TK2MSF TNGP12.phx.gbl. ..
> > Hi,
> >
> > Yes.
> >
> > Ken
> > ------------------------
> > "scorpion53 061" <sc************ *************** *@yahoo.com> wrote in > message
> > news:Of******** *****@TK2MSFTNG P09.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***@bellsout h.net> wrote in message
> > > news:uK******** *****@TK2MSFTNG P09.phx.gbl...
> > > > Hi,
> > > >
> > > > To set the row height adjust the tablestyle
preferredrowhei ght.
To
> make
> > a
> > > > column readonly set the datagridtextbox column readonly
property to > true.
> > > >
> > > > Ken
> > > > ---------------
> > > >
> > > > "scorpion53 061" <sc************ *************** *@yahoo.com>

wrote in
> > > message
> > > > news:u7******** ******@TK2MSFTN GP09.phx.gbl...
> > > > > 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 ColoredTextBoxC olumn
> > > > > BOOKSLABEL.Text Box.BackColor =
> > > System.Drawing. SystemColors.De sktop
> > > > > BOOKSLABEL.Mapp ingName = "Label"
> > > > > BOOKSLABEL.Head erText = "Possible Fields"
> > > > > BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> > > > > BOOKSLABEL.Text Box.Height = 150
> > > > > BOOKSLABEL.Widt h = 200
> > > > > BOOKSLABEL.Text Box.ReadOnly = True
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 20 '05 #11
Hi,

Look at the stringformat linealignment property.

Ken
---------------------------
"scorpion53 061" <sc************ *************** *@yahoo.com> wrote in message
news:uw******** ******@TK2MSFTN GP12.phx.gbl...
Ken,

This code sample (I didnt get the vertical alignment working) but using an
Arraylist for the grid is very cool. Thank you for the sample.

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:uV******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

You would have to override the paint event. I posted an

example
here.
http://www.onteorasoftware.com/Datagrid.aspx#AnsDB2

Ken
----------------
"scorpion53 061" <sc************ *************** *@yahoo.com> wrote in

message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. .
I went wrong on the row...when teh user selected the row it would still allow the user to delete it.
I dealt with that problem and the rest except one.

How if you make the grid cell size 40 for instance, make the text appear
in
the middle of the cell aligned left?

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:ef******** ******@TK2MSFTN GP12.phx.gbl...
> Hi,
>
> Dim BOOKSLABEL As New ColoredTextBoxC olumn
> > BOOKSLABEL.Text Box.BackColor =
System.Drawing. SystemColors.De sktop
> > BOOKSLABEL.Mapp ingName = "Label"
> > BOOKSLABEL.Head erText = "Possible Fields"
> > BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> > BOOKSLABEL.Text Box.Height = 150
> > BOOKSLABEL.Widt h = 200
> > BOOKSLABEL.Read Only = True
>
> Ken
> ------------
> "scorpion53 061" <sc************ *************** *@yahoo.com> wrote in
message
> news:O2******** ******@TK2MSFTN GP09.phx.gbl...
> > HI ken,
> >
> > In this scenario,
> > Dim BOOKSLABEL As New ColoredTextBoxC olumn
> > BOOKSLABEL.Text Box.BackColor =
System.Drawing. SystemColors.De sktop
> > BOOKSLABEL.Mapp ingName = "Label"
> > BOOKSLABEL.Head erText = "Possible Fields"
> > BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> > BOOKSLABEL.Text Box.Height = 150
> > BOOKSLABEL.Widt h = 200
> > BOOKSLABEL.Text Box.ReadOnly = True
> > how would you have made this column read only?
> >
> > "Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
> > news:O0******** ********@TK2MSF TNGP12.phx.gbl. ..
> > > Hi,
> > >
> > > Yes.
> > >
> > > Ken
> > > ------------------------
> > > "scorpion53 061" <sc************ *************** *@yahoo.com> wrote in > > message
> > > news:Of******** *****@TK2MSFTNG P09.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***@bellsout h.net> wrote in message
> > > > news:uK******** *****@TK2MSFTNG P09.phx.gbl...
> > > > > Hi,
> > > > >
> > > > > To set the row height adjust the tablestyle

preferredrowhei ght. To
> > make
> > > a
> > > > > column readonly set the datagridtextbox column readonly property
to
> > true.
> > > > >
> > > > > Ken
> > > > > ---------------
> > > > >
> > > > > "scorpion53 061" <sc************ *************** *@yahoo.com>

wrote in
> > > > message
> > > > > news:u7******** ******@TK2MSFTN GP09.phx.gbl...
> > > > > > 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 ColoredTextBoxC olumn
> > > > > > BOOKSLABEL.Text Box.BackColor =
> > > > System.Drawing. SystemColors.De sktop
> > > > > > BOOKSLABEL.Mapp ingName = "Label"
> > > > > > BOOKSLABEL.Head erText = "Possible Fields"
> > > > > > BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> > > > > > BOOKSLABEL.Text Box.Height = 150
> > > > > > BOOKSLABEL.Widt h = 200
> > > > > > BOOKSLABEL.Text Box.ReadOnly = True
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 20 '05 #12
Problem solved and thank you Ken. It now is vertically aligned with scroll
bars and word wrap.
"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:uJ******** ******@TK2MSFTN GP09.phx.gbl...
Hi,

Look at the stringformat linealignment property.

Ken
---------------------------
"scorpion53 061" <sc************ *************** *@yahoo.com> wrote in message news:uw******** ******@TK2MSFTN GP12.phx.gbl...
Ken,

This code sample (I didnt get the vertical alignment working) but using an
Arraylist for the grid is very cool. Thank you for the sample.

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:uV******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

You would have to override the paint event. I posted an

example
here.
http://www.onteorasoftware.com/Datagrid.aspx#AnsDB2

Ken
----------------
"scorpion53 061" <sc************ *************** *@yahoo.com> wrote in

message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. .
> I went wrong on the row...when teh user selected the row it would still > allow the user to delete it.
> I dealt with that problem and the rest except one.
>
> How if you make the grid cell size 40 for instance, make the text appear in
> the middle of the cell aligned left?
>
> "Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
> news:ef******** ******@TK2MSFTN GP12.phx.gbl...
> > Hi,
> >
> > Dim BOOKSLABEL As New ColoredTextBoxC olumn
> > > BOOKSLABEL.Text Box.BackColor =
> System.Drawing. SystemColors.De sktop
> > > BOOKSLABEL.Mapp ingName = "Label"
> > > BOOKSLABEL.Head erText = "Possible Fields"
> > > BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> > > BOOKSLABEL.Text Box.Height = 150
> > > BOOKSLABEL.Widt h = 200
> > > BOOKSLABEL.Read Only = True
> >
> > Ken
> > ------------
> > "scorpion53 061" <sc************ *************** *@yahoo.com> wrote in > message
> > news:O2******** ******@TK2MSFTN GP09.phx.gbl...
> > > HI ken,
> > >
> > > In this scenario,
> > > Dim BOOKSLABEL As New ColoredTextBoxC olumn
> > > BOOKSLABEL.Text Box.BackColor =
> System.Drawing. SystemColors.De sktop
> > > BOOKSLABEL.Mapp ingName = "Label"
> > > BOOKSLABEL.Head erText = "Possible Fields"
> > > BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> > > BOOKSLABEL.Text Box.Height = 150
> > > BOOKSLABEL.Widt h = 200
> > > BOOKSLABEL.Text Box.ReadOnly = True
> > > how would you have made this column read only?
> > >
> > > "Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
> > > news:O0******** ********@TK2MSF TNGP12.phx.gbl. ..
> > > > Hi,
> > > >
> > > > Yes.
> > > >
> > > > Ken
> > > > ------------------------
> > > > "scorpion53 061" <sc************ *************** *@yahoo.com> wrote in
> > > message
> > > > news:Of******** *****@TK2MSFTNG P09.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***@bellsout h.net> wrote in message
> > > > > news:uK******** *****@TK2MSFTNG P09.phx.gbl...
> > > > > > Hi,
> > > > > >
> > > > > > To set the row height adjust the tablestyle

preferredrowhei ght.
> To
> > > make
> > > > a
> > > > > > column readonly set the datagridtextbox column readonly

property
to
> > > true.
> > > > > >
> > > > > > Ken
> > > > > > ---------------
> > > > > >
> > > > > > "scorpion53 061" <sc************ *************** *@yahoo.com>

wrote
> in
> > > > > message
> > > > > > news:u7******** ******@TK2MSFTN GP09.phx.gbl...
> > > > > > > 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 ColoredTextBoxC olumn
> > > > > > > BOOKSLABEL.Text Box.BackColor =
> > > > > System.Drawing. SystemColors.De sktop
> > > > > > > BOOKSLABEL.Mapp ingName = "Label"
> > > > > > > BOOKSLABEL.Head erText = "Possible Fields"
> > > > > > > BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> > > > > > > BOOKSLABEL.Text Box.Height = 150
> > > > > > > BOOKSLABEL.Widt h = 200
> > > > > > > BOOKSLABEL.Text Box.ReadOnly = True
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 20 '05 #13
Ken,

One more thought on this line.......

Do you know of a link or sample in the SDK that would let me depending on
the value of column 1 of the datagrid would put a combo box in the grid for
the second column? If hte value didnt equal what I was looking for then it
would not do this and leave it as a textbox?

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:uJ******** ******@TK2MSFTN GP09.phx.gbl...
Hi,

Look at the stringformat linealignment property.

Ken
---------------------------
"scorpion53 061" <sc************ *************** *@yahoo.com> wrote in message news:uw******** ******@TK2MSFTN GP12.phx.gbl...
Ken,

This code sample (I didnt get the vertical alignment working) but using an
Arraylist for the grid is very cool. Thank you for the sample.

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:uV******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

You would have to override the paint event. I posted an

example
here.
http://www.onteorasoftware.com/Datagrid.aspx#AnsDB2

Ken
----------------
"scorpion53 061" <sc************ *************** *@yahoo.com> wrote in

message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. .
> I went wrong on the row...when teh user selected the row it would still > allow the user to delete it.
> I dealt with that problem and the rest except one.
>
> How if you make the grid cell size 40 for instance, make the text appear in
> the middle of the cell aligned left?
>
> "Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
> news:ef******** ******@TK2MSFTN GP12.phx.gbl...
> > Hi,
> >
> > Dim BOOKSLABEL As New ColoredTextBoxC olumn
> > > BOOKSLABEL.Text Box.BackColor =
> System.Drawing. SystemColors.De sktop
> > > BOOKSLABEL.Mapp ingName = "Label"
> > > BOOKSLABEL.Head erText = "Possible Fields"
> > > BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> > > BOOKSLABEL.Text Box.Height = 150
> > > BOOKSLABEL.Widt h = 200
> > > BOOKSLABEL.Read Only = True
> >
> > Ken
> > ------------
> > "scorpion53 061" <sc************ *************** *@yahoo.com> wrote in > message
> > news:O2******** ******@TK2MSFTN GP09.phx.gbl...
> > > HI ken,
> > >
> > > In this scenario,
> > > Dim BOOKSLABEL As New ColoredTextBoxC olumn
> > > BOOKSLABEL.Text Box.BackColor =
> System.Drawing. SystemColors.De sktop
> > > BOOKSLABEL.Mapp ingName = "Label"
> > > BOOKSLABEL.Head erText = "Possible Fields"
> > > BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> > > BOOKSLABEL.Text Box.Height = 150
> > > BOOKSLABEL.Widt h = 200
> > > BOOKSLABEL.Text Box.ReadOnly = True
> > > how would you have made this column read only?
> > >
> > > "Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
> > > news:O0******** ********@TK2MSF TNGP12.phx.gbl. ..
> > > > Hi,
> > > >
> > > > Yes.
> > > >
> > > > Ken
> > > > ------------------------
> > > > "scorpion53 061" <sc************ *************** *@yahoo.com> wrote in
> > > message
> > > > news:Of******** *****@TK2MSFTNG P09.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***@bellsout h.net> wrote in message
> > > > > news:uK******** *****@TK2MSFTNG P09.phx.gbl...
> > > > > > Hi,
> > > > > >
> > > > > > To set the row height adjust the tablestyle

preferredrowhei ght.
> To
> > > make
> > > > a
> > > > > > column readonly set the datagridtextbox column readonly

property
to
> > > true.
> > > > > >
> > > > > > Ken
> > > > > > ---------------
> > > > > >
> > > > > > "scorpion53 061" <sc************ *************** *@yahoo.com>

wrote
> in
> > > > > message
> > > > > > news:u7******** ******@TK2MSFTN GP09.phx.gbl...
> > > > > > > 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 ColoredTextBoxC olumn
> > > > > > > BOOKSLABEL.Text Box.BackColor =
> > > > > System.Drawing. SystemColors.De sktop
> > > > > > > BOOKSLABEL.Mapp ingName = "Label"
> > > > > > > BOOKSLABEL.Head erText = "Possible Fields"
> > > > > > > BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> > > > > > > BOOKSLABEL.Text Box.Height = 150
> > > > > > > BOOKSLABEL.Widt h = 200
> > > > > > > BOOKSLABEL.Text Box.ReadOnly = True
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 20 '05 #14
This worked but........

Dim C As New ComboBox
C.Location =
DataGridSH.Poin tToClient(DataG ridSH.MousePosi tion)
C.Items.Add("fo obar")
C.Items.Add("he llo world")
DataGridSH.Cont rols.Add(C)
C.BringToFront( )

but if you came back to it it added it again and I couldnt get it to replace
the textbox currently in the grid.
"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:uJ******** ******@TK2MSFTN GP09.phx.gbl...
Hi,

Look at the stringformat linealignment property.

Ken
---------------------------
"scorpion53 061" <sc************ *************** *@yahoo.com> wrote in message news:uw******** ******@TK2MSFTN GP12.phx.gbl...
Ken,

This code sample (I didnt get the vertical alignment working) but using an
Arraylist for the grid is very cool. Thank you for the sample.

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:uV******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

You would have to override the paint event. I posted an

example
here.
http://www.onteorasoftware.com/Datagrid.aspx#AnsDB2

Ken
----------------
"scorpion53 061" <sc************ *************** *@yahoo.com> wrote in

message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. .
> I went wrong on the row...when teh user selected the row it would still > allow the user to delete it.
> I dealt with that problem and the rest except one.
>
> How if you make the grid cell size 40 for instance, make the text appear in
> the middle of the cell aligned left?
>
> "Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
> news:ef******** ******@TK2MSFTN GP12.phx.gbl...
> > Hi,
> >
> > Dim BOOKSLABEL As New ColoredTextBoxC olumn
> > > BOOKSLABEL.Text Box.BackColor =
> System.Drawing. SystemColors.De sktop
> > > BOOKSLABEL.Mapp ingName = "Label"
> > > BOOKSLABEL.Head erText = "Possible Fields"
> > > BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> > > BOOKSLABEL.Text Box.Height = 150
> > > BOOKSLABEL.Widt h = 200
> > > BOOKSLABEL.Read Only = True
> >
> > Ken
> > ------------
> > "scorpion53 061" <sc************ *************** *@yahoo.com> wrote in > message
> > news:O2******** ******@TK2MSFTN GP09.phx.gbl...
> > > HI ken,
> > >
> > > In this scenario,
> > > Dim BOOKSLABEL As New ColoredTextBoxC olumn
> > > BOOKSLABEL.Text Box.BackColor =
> System.Drawing. SystemColors.De sktop
> > > BOOKSLABEL.Mapp ingName = "Label"
> > > BOOKSLABEL.Head erText = "Possible Fields"
> > > BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> > > BOOKSLABEL.Text Box.Height = 150
> > > BOOKSLABEL.Widt h = 200
> > > BOOKSLABEL.Text Box.ReadOnly = True
> > > how would you have made this column read only?
> > >
> > > "Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
> > > news:O0******** ********@TK2MSF TNGP12.phx.gbl. ..
> > > > Hi,
> > > >
> > > > Yes.
> > > >
> > > > Ken
> > > > ------------------------
> > > > "scorpion53 061" <sc************ *************** *@yahoo.com> wrote in
> > > message
> > > > news:Of******** *****@TK2MSFTNG P09.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***@bellsout h.net> wrote in message
> > > > > news:uK******** *****@TK2MSFTNG P09.phx.gbl...
> > > > > > Hi,
> > > > > >
> > > > > > To set the row height adjust the tablestyle

preferredrowhei ght.
> To
> > > make
> > > > a
> > > > > > column readonly set the datagridtextbox column readonly

property
to
> > > true.
> > > > > >
> > > > > > Ken
> > > > > > ---------------
> > > > > >
> > > > > > "scorpion53 061" <sc************ *************** *@yahoo.com>

wrote
> in
> > > > > message
> > > > > > news:u7******** ******@TK2MSFTN GP09.phx.gbl...
> > > > > > > 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 ColoredTextBoxC olumn
> > > > > > > BOOKSLABEL.Text Box.BackColor =
> > > > > System.Drawing. SystemColors.De sktop
> > > > > > > BOOKSLABEL.Mapp ingName = "Label"
> > > > > > > BOOKSLABEL.Head erText = "Possible Fields"
> > > > > > > BOOKSLABEL.Alig nment = HorizontalAlign ment.Left
> > > > > > > BOOKSLABEL.Text Box.Height = 150
> > > > > > > BOOKSLABEL.Widt h = 200
> > > > > > > BOOKSLABEL.Text Box.ReadOnly = True
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 20 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
9926
by: Chris Plowman | last post by:
Hi all, I was wondering if anyone can help me with a really annoying problem I have been having. I made a derived datagrid class that will select the row when a user clicks anywhere on a cell (multi-select without modifier keys). I got that working fine, but I also wanted to keep rows selected after a sort, which I do by storing the row's id in an arraylist. The idea was to do the sort and then go back and re-select the rows with that...
0
3189
by: Emerson | last post by:
The following assumes a System.Windows.Forms.DataGrid with a System.Data.DataTable set as the DataSource. I'm programming in C# Here's my scenario I click in a cell on a DataGrid. I enter some text. Before changing to another cell in the DataGrid, I move my mouse pointer off the DataGrid and change the selected item in a ListBox or TreeView. Here's my question Which should fire first, the DataTable's RowChanged/CellChanged event or...
5
2597
by: Jeff | last post by:
IDE: VS 2003 :NET OS: XP Pro My app have a form with a tab-control on it. The tab-control have 2 tabpages. One of the tabpages displays a datagrid, and the other tabpage displays details (order date, name, address etc) about the selected row in the datagrid... My problem is when I enter a new record in the details tabpage (saves data to database), and go back to the datagrid. Only the data from the PM-table
1
4340
by: Rick | last post by:
Hello all, I hope all is well with you. I am having a seriously difficult time with this problem. Allow me to set up the problem. I have a System.Web.UI.Page with the following controls (watch the layout, some have child controls):
4
2126
by: The Alchemist | last post by:
I am having a problem with a dynamically-generated Datagrid. It is important to point out that this problem does not exist with a design-time created Datagrid, but only with a dynamically generated Datagrid in a Web Custom Control (WCC) : The datagrid has LinkButton Column which has a select LinkButton for each row. When this button is clicked, the Datagrid raises its 'ItemCommand' event which captures the information for that row and...
9
5066
by: tshad | last post by:
How do I find (and set) a couple of labels in the Footer after a DataGrid is filled? I have a bunch of DataGrids that get displayed nested inside a DataList. The datagrid looks like: ******************************************************************************* <asp:DataGrid visible="False" border=1
4
3496
by: tshad | last post by:
I am having trouble with links in my DataGrid. I have Links all over my page set to smaller and they are consistant all over the page in both Mozilla and IE, except for the DataGrid. Here is a snippet from my .css file: *************************** body { margin:0; padding:0;
0
1704
by: optimizeit | last post by:
What I am attempting to do is import an Excel Workbook and display the worksheets in a datagrid dynamically. I am very close to getting this to work. I have to this point successfully imported a single worksheet into a dataset. I successfully built a dynamic datagrid. And I did successfully bind it to the dataset. Then I added the datagrid control to a PlaceHolder. The first worksheet displays beautifully. The next step is to allow...
9
2729
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the code: <script runat="server"> Dim sqlConn As New SqlConnection(".....") Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) If Not (Page.IsPostBack) Then FillDataGrid()
2
6595
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor information and the details loads the documents for that vendor in a datagrid. Everything is working fine until I click in the child datagrid and then go to the combobox and choose another vendor. When the new vendor is loaded nothing shows in the datagrid but the itemsource shows the info is there. Know if I click on the child cell and then click back on the...
0
9617
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10257
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.