473,385 Members | 1,958 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 5656
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
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...

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.