Summary:
The .NET framework provides many unique controls like the DataGrid, which is a data bound list control that displays the items from a data source in a table. The DataGrid is the most powerful and flexible control in the .NET toolbox. In this article, Chad DePue takes a look at one aspect of the DataGrids flexibility, by creating a custom column. The DataGrid provides two types of columns for free, the DataGridTextBoxColumn and the DataGridBoolColumn, but there are many types of data that wont fit into either of these two column types. In the example given, we want to search a directory for icon (.ICO) files and display each icon as a row in the DataGrid. Neither of the existing column styles will do this for us, so we create our own. |