I have a table with two columns field1 int,Field2 and added a column
to datagrid on runtime sum (field1+field2) ,upon changing the data in
either of the fileds the sum field or column too changes .
Intially there will be data in the fields ..and ii try to change the
value of column [field1] so the column [sum] also changes,Can i
change
the colour of the cells[Field1,sum] where the data has been
changed .I
have found out the cells where the data has been changed i here by
enclosing the code for finding out the data changed in cells
Private Sub btnHighlight_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnHighlight.Click
Dim row, col As Integer
For row = 0 To dsDb.Tables("Sum").Rows.Count - 1
For col = 0 To dsDb.Tables("Sum").Columns.Count - 1
If Not (dsDb.Tables("Sum").Rows(row).Item(col,
DataRowVersion.Original) = _
dsDb.Tables("Sum").Rows(row).Item(col,
DataRowVersion.Current)) Then
MsgBox("The Original value at cell[" &
row.ToString & "," & col.ToString & "] is " & _
dsDb.Tables("Sum").Rows(row).Item(col,
DataRowVersion.Original).ToString)
End If
Next
Next
End Sub
can any guide me how to change the colour of the cells where the data
has been changed 1 1642
Have a look at: http://www.syncfusion.com/FAQ/Window...efault.aspx#44
Doug
"satish" <sa**********************@gmail.comwrote in message
news:11**********************@n59g2000hsh.googlegr oups.com...
I have a table with two columns field1 int,Field2 and added a column
to datagrid on runtime sum (field1+field2) ,upon changing the data in
either of the fileds the sum field or column too changes .
Intially there will be data in the fields ..and ii try to change the
value of column [field1] so the column [sum] also changes,Can i
change
the colour of the cells[Field1,sum] where the data has been
changed .I
have found out the cells where the data has been changed i here by
enclosing the code for finding out the data changed in cells
Private Sub btnHighlight_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnHighlight.Click
Dim row, col As Integer
For row = 0 To dsDb.Tables("Sum").Rows.Count - 1
For col = 0 To dsDb.Tables("Sum").Columns.Count - 1
If Not (dsDb.Tables("Sum").Rows(row).Item(col,
DataRowVersion.Original) = _
dsDb.Tables("Sum").Rows(row).Item(col,
DataRowVersion.Current)) Then
MsgBox("The Original value at cell[" &
row.ToString & "," & col.ToString & "] is " & _
dsDb.Tables("Sum").Rows(row).Item(col,
DataRowVersion.Original).ToString)
End If
Next
Next
End Sub
can any guide me how to change the colour of the cells where the data
has been changed This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Lois |
last post by:
My website formatting knowledge is mostly HTML; I know hardly any
Javascript. Recently I created a site with a nav bar in table format across
the top of the page, and I made the background colour...
|
by: JD |
last post by:
How do i get rid of the 1st column that appears in a
datagrid? I do not want this?
Also how do i change the colour of the background of a
cell when the user selects it. i.e for the first coloumn...
|
by: ms |
last post by:
Hi, I've been trying to find a way to change a cell's colour when clicking it.
What I've found so far is to change the background colour by using:
function whenClick(navElm) {
var state1 =...
|
by: Peter Williams |
last post by:
Hi All,
I want to write some javascript for a html page which does the
following.
Imagine that the page contains a table with 2 columns and 3 rows, e.g.:
+---+---+
| A | B |
+---+---+
|
by: QT |
last post by:
Dear Sirs,
I have a datagrid which is taking sorce from .mdb file.
I want to change some cell's font colour to red depent of data conditions.
Can I do that?
Best Regards
|
by: Earl |
last post by:
I want to fire a database update off of a single change to a single cell in
the datagrid. This apparently cannot be done using keypress, keyup, keydown,
etc. I've read George Shepard's FAQ and...
|
by: Badino |
last post by:
Hi,
Can someone tell me what to put in this code so that if a user selects 0 (Black) then make the font white (0) as my default colour is black on my Excel spreadsheet.
Private Type...
|
by: satish |
last post by:
I have a table with two columns field1 int,Field2 and added a column
to datagrid on runtime sum (field1+field2) ,upon changing the data in
either of the fileds the sum field or column too changes ....
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |