Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

SourceGrid - Open Source C# Grid Control

, 4 Aug 2013 MIT
SourceGrid is a free open source grid control. Supports virtual grid, custom cells and editors, advanced formatting options and many others features
sourcegrid2_source.zip
SourceGrid2
References
SourceLibrary.dll
vssver.scc
SampleProject
App.ico
bin
Release
SampleProject.exe
SourceGrid2.dll
SourceLibrary.dll
Extensions
Add.ico
ArrowDown.ICO
ArrowUp.ICO
Delete.ICO
Refresh.ico
vssver.scc
Samples
CalcioSmall.bmp
FACE00.ICO
FACE01.ICO
FACE02.ICO
FACE04.ICO
new.bmp
vssver.scc
SourceGrid
BehaviorModels
vssver.scc
bin
Release
SourceGrid2.dll
SourceLibrary.dll
vssver.scc
Cells
vssver.scc
Common
Icons
CheckBoxChecked.ico
CheckBoxCheckedDisable.ico
CheckBoxCheckedSel.ico
CheckBoxUnChecked.ico
CheckBoxUnCheckedDisable.ico
CheckBoxUnCheckedSel.ico
clear.ico
copy.ico
cut.ico
DeleteCol.ico
DeleteRow.ico
InsertCol.ico
InsertRow.ico
paste.ico
properties.ico
SortDown.ico
SortUp.ico
Thumbs.db
vssver.scc
vssver.scc
DataModels
vssver.scc
Grid.bmp
Grids
vssver.scc
GridVirtual.bmp
SourceGrid2.snk
VisualModels
vssver.scc
sourcegrid_demo.zip
SourceGrid
DemoProject
App.ico
bin
Release
DemoProject.exe
SourceGrid.dll
SourceLibrary.dll
FACE00.ICO
FACE01.ICO
FACE02.ICO
FACE04.ICO
new.bmp
PropertyStyleGrid
WorksheetStyleGrid
References
SourceLibrary.dll
SourceGrid
bin
Release
SourceGrid.dll
Cells
Models
PropertyStyleGrid
SourceGrid.snk
TypeCreator
Utility
Chris.Beckett.MenuImageLib
SubItem16.ico
Control
Controls
Icons
CheckBoxChecked.ico
CheckBoxCheckedDisable.ico
CheckBoxCheckedSel.ico
CheckBoxUnChecked.ico
CheckBoxUnCheckedDisable.ico
CheckBoxUnCheckedSel.ico
clear.ico
copy.ico
cut.ico
DeleteCol.ico
DeleteRow.ico
InsertCol.ico
InsertRow.ico
paste.ico
properties.ico
SortDown.ico
SortUp.ico
WorksheetStyleGrid
using System;

namespace SourceGrid2.Cells.Virtual
{
	/// <summary>
	/// A cell with a combobox for editor. Use a model with a ICollection for standard values.
	/// </summary>
	public abstract class ComboBox : CellVirtual
	{
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="p_CellType"></param>
		/// <param name="p_StandardValues"></param>
		/// <param name="p_StandardValuesExclusive"></param>
		public ComboBox(Type p_CellType, System.Collections.ICollection p_StandardValues, bool p_StandardValuesExclusive)
		{
			DataModel = new DataModels.EditorComboBox(p_CellType, p_StandardValues, p_StandardValuesExclusive);
		}
	}
}

namespace SourceGrid2.Cells.Real
{
	/// <summary>
	/// A cell with a combobox for editor. Use a model with a ICollection for standard values.
	/// </summary>
	public class ComboBox : Cell
	{
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="p_Value"></param>
		/// <param name="p_CellType"></param>
		/// <param name="p_StandardValues"></param>
		/// <param name="p_StandardValuesExclusive"></param>
		public ComboBox(object p_Value, Type p_CellType, System.Collections.ICollection p_StandardValues, bool p_StandardValuesExclusive):base(p_Value)
		{
			DataModel = new DataModels.EditorComboBox(p_CellType, p_StandardValues, p_StandardValuesExclusive);
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License

Share

About the Author

Davide Icardi
Software Developer
Italy Italy
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141216.1 | Last Updated 4 Aug 2013
Article Copyright 2003 by Davide Icardi
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid