473,385 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

FlexGrid Sel Styles ??? !! ???

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 =---
Nov 20 '05 #1
4 5655
Hi,

You never created the NewStyle before you use it. Try something
like this.
Dim NewStyle as new C1.Win.C1FlexGrid.CellStyle

Ken
-------------------
"JInsane" <jo***@advansoft.co-dot-za.no-spam.invalid> wrote in message
news:40********@127.0.0.1...
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

=---
Nov 20 '05 #2
Hi,

You never created the NewStyle before you use it. Try something
like this.
Dim NewStyle as new C1.Win.C1FlexGrid.CellStyle

Ken
-------------------
"JInsane" <jo***@advansoft.co-dot-za.no-spam.invalid> wrote in message
news:40********@127.0.0.1...
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

=---
Nov 20 '05 #3
"JInsane" <jo***@advansoft.co-dot-za.no-spam.invalid> wrote in message
news:40********@127.0.0.1...
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


Dim NewStyle As C1.Win.C1FlexGrid.CellStyle
NewStyle = C1FlexGrid1.Styles.Add("NewStyle")
C1FlexGrid1.SetCellStyle(iRowNo, 4, NewStyle)

In the future, you should ask flexgrid questions at the C1 news server:
news2.componentone.com

Erik
Nov 20 '05 #4
"JInsane" <jo***@advansoft.co-dot-za.no-spam.invalid> wrote in message
news:40********@127.0.0.1...
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


Dim NewStyle As C1.Win.C1FlexGrid.CellStyle
NewStyle = C1FlexGrid1.Styles.Add("NewStyle")
C1FlexGrid1.SetCellStyle(iRowNo, 4, NewStyle)

In the future, you should ask flexgrid questions at the C1 news server:
news2.componentone.com

Erik
Nov 20 '05 #5

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

Similar topics

7
by: tombsy | last post by:
Hi gang... I want to have a form that can display data from a datasource that is not fixed. lets say a crosstab query that can change the number of colums and field headings depending on the...
4
by: VR | last post by:
I am trying to embed a check box into a FlexGrid's cell, but having a problem when I start scrolling the grid. Here is my MyCheckBox class... class MyCheckBox : CheckBox { void Init (...
9
by: JFB | last post by:
Hi All, I have a edit flexgrid, after to fill with different rows manually. How can I insert the rows of my flexgrid to my table (sql server) using ado.net? Any example? I can insert one row...
4
by: JInsane | last post by:
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...
0
by: Xavier Valdés | last post by:
Hi all, I'm using component one's flexgrid (nonclassic) and I have a question... How could I drag and drop ROWS??? (from a component with my flexgrid and another component with flexgrid)...
5
by: schapopa | last post by:
I have a flex grid and I am loading data to this flex grid in this way While sqldr.Read j = j + 1 MSFlexGrid1PLSummary.set_TextMatrix(MSFlexGrid1PLSummary.Row, MSFlexGrid1PLSummary.Col,...
0
by: alexh1000 | last post by:
When I insert the FlexGrid control in a dialog (using controls toolbar) the dialog fails to open on program execution(DoModal returns a -1). If I remove the FlexGrid from the dialog, the dialog...
3
by: sweevil | last post by:
I'm converting a VB6 project to .Net2005. One of the items encountered was setting the cellpicture onto a flexgrid from an imagelist. The image background doesn't appear to render correctly. I...
3
by: ArmageddonAsh | last post by:
I'm trying to make an application that will allow the user to enter data into a flexgrid (that's done) and then save the data from that flexgrid into a CSV file but even though the file is made none...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...

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.