Yes, I was talking about the datagrid, but my question is, what event
is
triggered so that I know that a datarow has changed state? Is there an
onchangedstate event or something? Sorry if I am sounding dim, but I
can
figure out how to change it (with formatting a columnstyle), but I
don't
know
what event would fire when the data changes.
Thanks,
Sara
:
Hi,
If you mean the WinForms datagrid, you will need a custom
DataGridColumnStyle. Take a look at the
System.Windows.Forms.DataGridColumnStyle MSDN docs, they should have
an
example of creating a custom column style.
As a hint, you will most likely be able to inherit from
DataGridTextBoxColumn and to override PaintText to paint changed rows
(which
can be detected by querying the corresponding DataViewRow's RowState
(or
was
it just State?) property).
--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx
I have an editable datagrid in my app. I would like any changed text
to
be
bolded so that the user can easily review the changes before
submitting
them.
I don't see any event like 'onTextchange' or something that would
allow
me
to
capture the cell that changed.
How can I bold the changed text before updating it?
Thanks!