* DataGridColumnStyle.cs: stop setting _readonly in the
PropertyDescriptor setter. fixes a unit test failure.
also, rename ParentReadOnly to TableStyleReadOnly, and have it
just consult our table style (if we have one). We don't need to
consult the datagrid readonly attribute because that's passed in
as the _ro arg to Edit. this simplifies things a little.
* DataGrid.cs: use CurrentColumn instead of
current_cell.ColumnNumber just to simplify some of the code.
switch the order of some things in the CurrentCell setter to keep
the previous cell from getting a textbox again -
EnsureCellVisibility causes scrolling to happen, which calls Edit.
So we need to set the new cell before calling it.
call Edit in OnEnter, as does Microsoft.
also, make sure the current table style isn't the one we create
initially when checking to see if it's different than the one
we're setting it to in BindColumns (this fixes#80421).
* GridTableStylesCollection.cs: table styles can have "" for a
mapping name. part of the fix for #80421.
* DataGridTextBoxColumn.cs: simplify the readonly calculation in
Edit significantly.
svn path=/trunk/mcs/; revision=71351
(with action = Refresh) when a consituent table's MappingName is
changed.
2006-08-08 Chris Toshok <[email protected]>
svn path=/trunk/mcs/; revision=63510
* ThemeWin32Classic.cs: implement the new row/header painting
approach. The parent row painting will likely go away and
replaced with label controls, but the rest seems to work ok (and
efficiently).
* Theme.cs: change the way we draw datagrid rows. we don't draw
the row headers as a block now. Instead we draw them in the
normal draw-row loop. Add some calls for drawing parent rows and
relation rows.
* DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
a default table style. Set the defaults from ThemeEngine.Current,
not SystemColors. Fix lots of misc issues with property setters.
* DataGrid.cs: move loads of style information out of this class
as it's being duplicated with DataGridTableStyle. keep track of a
special DataGridTableStyle for the properties we used to mirror
here. Switch all the style properties to access this table style
instead of instance fields of this class. Also add a internal
class to represent parent rows (more needs to be stored here, like
the selection state from the parent table, as well as the
expansion state.) Also, for datasources with relations, do the
right thing for collapse/expand, and add support for the
navigation/parent row buttons.
Lastly, fix the crash in the 1.1.16 build.
* GridTableStylesCollection.cs: make the explicit interface
implementations call the class's methods as opposed to duplicating
them.
* DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
0 so the text doesn't jump around when we move the cursor.
2006-07-10 Chris Toshok <[email protected]>
* CurrencyManager.cs: correct one regression, the removal of the
finalType field. Also, add a MonoTODO on CanAddRows, implement
Refresh() correctly, and fix some event emission in
ListChangedHandler.
svn path=/trunk/mcs/; revision=62414