G
Gary
Hi,
I'm making a very simple app for editing an XML document using a
datagrid. As much as I'd like to, I can't use a datagridview box
because it uses hierarchical elements nested a few levels deep. The
problem comes when it was requested to make some way to indicate a row
has been edited. Since datagrid doesn't seem to support ANY formatting
at all, I decided to just make a column at the beginning of the table
called "Edited" and put an "X" if something was modified.
That almost worked, but it has an issue whenever I go into one of the
nested elements. The "Edited" column is in the very top level table,
so when I have code such as:
Me.Item(Me.CurrentCell.RowNumber, 0) = "X"
' The "me" object being the datagrid
It will set an X as the first column in that particular table, which
is actually a data column and not the "Edited" column of its parent
table.
I do have an XML schema for determining relationships, but haven't had
any luck with it so far. Is there a possible way to just reference the
upper most parent table from an element, or even better: a way to just
signify a cell has been edited without all the column mess?
Thanks so much in advance! Let me know if anyone needs some more
sample code and/or specifics.
-Gary
I'm making a very simple app for editing an XML document using a
datagrid. As much as I'd like to, I can't use a datagridview box
because it uses hierarchical elements nested a few levels deep. The
problem comes when it was requested to make some way to indicate a row
has been edited. Since datagrid doesn't seem to support ANY formatting
at all, I decided to just make a column at the beginning of the table
called "Edited" and put an "X" if something was modified.
That almost worked, but it has an issue whenever I go into one of the
nested elements. The "Edited" column is in the very top level table,
so when I have code such as:
Me.Item(Me.CurrentCell.RowNumber, 0) = "X"
' The "me" object being the datagrid
It will set an X as the first column in that particular table, which
is actually a data column and not the "Edited" column of its parent
table.
I do have an XML schema for determining relationships, but haven't had
any luck with it so far. Is there a possible way to just reference the
upper most parent table from an element, or even better: a way to just
signify a cell has been edited without all the column mess?
Thanks so much in advance! Let me know if anyone needs some more
sample code and/or specifics.
-Gary