Home All Groups Group Topic Archive Search About

Marking a changed row

Author
23 Jan 2006 12:07 PM
andy
I'm working in dotnet 2003.
I have a datagrid.
The user would like to see some sort of highlight of rows they have
changed.
Anything would do.
An icon in the rowheader would be the ideal I can think of.
Changing colour of a cell or sticking an icon it would also work.

Nno need to worry about original values as they will input everything
at one go..
Couldn't see anything on George shepherd's faq,

Any ideas?

TIA,

Author
23 Jan 2006 1:33 PM
Cor Ligthert [MVP]
Andy

And never saw our site?

http://www.vb-tips.com/default.aspx

There are in my idea plenty of posibilites the last if you cannot find it,
is using a checkbox column with an extra column set by the rowstate.

Cor
Author
24 Jan 2006 8:46 AM
andy
Thanks Cor,

Not noticed you had a site, although I've seen a number of posts by
both you and Ken.

Checkbox sounds good.
I worked out the the row would be marked as changed I was just
wondering how to drive setting something from what event.
Didn't think of looping through all of them.
There's only going to be about 60 rows so looping through these every
time the cell changes will be fine.
I've seen stuff overrides the paint event and puts things into the
rowheader area but they look like I'd end up spending more time than I
want to.

Pity the datagrid functionality doesn't mark changed rows visually but
then you can write code can do just about anything with .net so can't
complain about the functionality when compared to vb6.

Thanks Cor.