K
Ken Tucker [MVP]
Hi,
You never created the NewStyle before you use it. Try something
like this.
Dim NewStyle as new C1.Win.C1FlexGrid.CellStyle
Ken
-------------------
You never created the NewStyle before you use it. Try something
like this.
Dim NewStyle as new C1.Win.C1FlexGrid.CellStyle
Ken
-------------------
=---JInsane said:my question goes like this, I need to know how you change the colour
of a sel on the FlexGrid. the code i used goes like this....
With C1FlexGrid1
Dim NewStyle As C1.Win.C1FlexGrid.CellStyle
NewStyle.BackColor = System.Drawing.Color.Red
.SetCellStyle(iRowNo, 4, NewStyle)
End With
.... but then it give me the error....
Object reference not set to an instance of an object
.....so what you uually do is this....
With C1FlexGrid1
Dim NewStyle As New
C1.Win.C1FlexGrid.CellStyle
NewStyle.BackColor = System.Drawing.Color.Red
.SetCellStyle(iRowNo, 4, NewStyle)
End With
... but then it tells me that [b:cf39a10cc9]NewStyle[/b:cf39a10cc9]
C1.Win.C1FlexGrid.CellStyle.Private Sub New(style As
C1.Win.C1FlexGrid.Util.Styles.Style) is not accessible in this
context because it is 'Private'
So what genuis can help me 2day..
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption