DataGrid parent relationships for nested elements, or any kind offormatting!

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
 
C

Cor Ligthert[MVP]

Since datagrid doesn't seem to support ANY formatting

Do you mean the webbased datgagrid?
The winforms datagrid has an extend set of column formating

Cor
 
G

Gary

Since datagrid doesn't seem to support ANY formatting


Do you mean the webbased datgagrid?
The winforms datagrid has an extend set of column formating

Cor

Actually the winforms one. I haven't been able to find any kind of
coloring formatting at all - how would you go about that?

-Gary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top