Commit Graph
12 Commits
Author SHA1 Message Date
Chris Toshok 7f8fc67bea 2007-01-19 Chris Toshok <[email protected]>
* 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
2007-01-19 18:06:18 +00:00
Chris Toshok 9eaf8ba026 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
(with action = Refresh) when a consituent table's MappingName is
	changed.

2006-08-08  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=63510
2006-08-08 22:36:45 +00:00
Chris Toshok 8e6f4e1c40 2006-07-10 Chris Toshok <[email protected]>
* 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
2006-07-10 23:38:07 +00:00
Jackson Harper 7ef6120c3a * Menu.cs:
* MainMenu.cs:
	* GrigTableStylesCollection.cs:
	* Timer.cs:
	* TabPage.cs:
	* HelpProvider.cs:
	* StatusBar.cs:
	* MonthCalendar.cs: Signature fixes


svn path=/trunk/mcs/; revision=52544
2005-11-03 23:40:08 +00:00
Jordi Mas i Hernandez 81669edf16 2005-08-05 Jordi Mas i Hernandez <[email protected]>
* DataGrid.cs: fixes bugs exposed by new tests


svn path=/trunk/mcs/; revision=48036
2005-08-05 11:27:44 +00:00
Jordi Mas i Hernandez cc967ffe2a In .:
2005-07-06  Jordi Mas i Hernandez <[email protected]>
	* DataGridTextBoxColumn.cs: default value
	* GridColumnStylesCollection.cs: fixes event firing, checking MappingName
	* GridTableStylesCollection.cs: fixes checking MappingName
	* DataGridDrawingLogic.cs: fixes drawing logic issues
	* DataSourceHelper.cs: rewritten to make compatible with more data sources
	* DataGrid.cs: fixes	


In System.Windows.Forms:
2005-07-06  Jordi Mas i Hernandez <[email protected]>

	* DataGridTextBoxColumn.cs: default value
	* GridColumnStylesCollection.cs: fixes event firing, checking MappingName
	* GridTableStylesCollection.cs: fixes checking MappingName
	* DataGridDrawingLogic.cs: fixes drawing logic issues
	* DataSourceHelper.cs: rewritten to make compatible with more data sources
	* DataGrid.cs: fixes	


svn path=/trunk/mcs/; revision=47015
2005-07-06 18:01:46 +00:00
Jordi Mas i Hernandez 619d0deeb5 2005-06-10 Jordi Mas i Hernandez <[email protected]>
* DataGridTextBoxColumn.cs: Honors aligment
	* GridColumnStylesCollection.cs: Contains is case unsensitive
	* GridTableStylesCollection.cs: several fixes
	* DataGridTableStyle.cs: default column creation
	* DataGridDrawingLogic.cs: fixes
	* CurrencyManager.cs: ListName property
	* DataGrid.cs: multiple styles support
	* DataGridColumnStyle.cs: fixes
	


svn path=/trunk/mcs/; revision=45793
2005-06-10 20:39:05 +00:00
Peter Dennis Bartok 9a5e633b32 2005-05-10 Peter Bartok <[email protected]>
* AccessibleObject.cs: 
	  - Removed MonoTODO attribute on help, method is correct
	  - Fixed Bounds property
	* AxHost.cs: Moved MonoTODO
	* ButtonBase.cs: Now setting AccessibleObject properties
	* RadioButton.cs: Setting proper AccessibleObject role
	* CheckBox.cs: Setting proper AccessibleObject role
	* ControlBindingsCollection.cs: Added properties, methods and attributes
	* DataFormats.cs: Fixed awkward internal API, and changed to enable
	  userdefined DataFormats.Format items as well
	* ListControl.cs: Removed data_member from the public eye
	* OpenFileDialog.cs: 
	  - Made class sealed
	  - Added missing attributes
	* SaveFileDialog.cs: Added missing attributes
	* ImageListStreamer.cs: Fixed code that caused warnings
	* LinkLabel.cs: Removed unreachable code
	* TreeView.cs: Fixed code that caused warnings
	* PropertyGridView.cs: Fixed code that caused warnings
	* GridColumnStylesCollection.cs: Added missing attributes
	* GridTableStylesCollection: Added missing attribute
	* PropertyManager: Added .ctor
	* SecurityIDType: Added
	* DataObject.cs: Implemented class



svn path=/trunk/mcs/; revision=44371
2005-05-11 04:42:35 +00:00
Jordi Mas i Hernandez b4de31dd2f 2005-04-22 Jordi Mas i Hernandez <[email protected]>
* DataGridTextBoxColumn.cs: call base constructors, fixes
	* GridColumnStylesCollection.cs: missing events, methods, and functionality
	* GridTableStylesCollection.cs: fixes, check duplicate mapping names
	* DataGridTableStyle.cs: implements create default column styles
	* DataGridBoolColumn.cs: which types can handle
	* DataGrid.cs: missing methods, fixes, new functionality
	* DataGridColumnStyle.cs: fixes


svn path=/trunk/mcs/; revision=43434
2005-04-22 09:50:34 +00:00
Jordi Mas i Hernandez 130086ffba 2005-04-15 Jordi Mas i Hernandez <[email protected]>
* GridTableStylesCollection.cs: fixes name and constructor
	* DataGridTableStyle.cs: fixes
	* DataGridBoolColumn.cs: fixes names and constructors
	* DataGrid.cs: define methods and properties. Some init implementations	
	* DataGridCell.cs: define methods and properties. Some init implementations	
	* GridTablesFactory.cs: Define methods and properties


svn path=/trunk/mcs/; revision=43070
2005-04-15 19:59:10 +00:00
Jordi Mas i Hernandez e7d9a171a2 2005-04-01 Jordi Mas i Hernandez <[email protected]>
* DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
	* GridColumnStylesCollection.cs: implements GridColumnStylesCollection
	* GridTableStylesCollection.cs: implements GridTableStylesCollection
	* DataGridTableStyle.cs: implements DataGridTableStyle
	* DataGridBoolColumn.cs: implements DataGridBoolColumn
	* DataGridTextBox.cs: implements DataGridTextBox
	* DataGridColumnStyle.cs: implements DataGridColumnStyle


svn path=/trunk/mcs/; revision=42454
2005-04-01 08:33:30 +00:00
Peter Dennis Bartok 2412486138 - Splitter added
- TextBox added
- Various empty classes added to allow switch to MWF

svn path=/trunk/mcs/; revision=38106
2004-12-27 17:25:21 +00:00