Extending Windows.Form DataGrid class
C#
2
Posts
2
Posters
0
Views
1
Watching
-
-
HI, I want to extend Windows.Forms.DataGrid class so I can add buttons to data grid's columns. I haven't found any good sample of this over the internet... if any body has link to a better example/sample - please forward me that URL thanx in advance:(
You mean in the headers, or in the columns themselves? You don't need to "extend the DataGrid" to do this, though. You simply implement a
DataGridColumnStyle
derivative. If you look at the class documentation[^] for theDataGridColumnStyle
, it even gives you a completely example that hosts aDateTimePicker
control in the data columns.Microsoft MVP, Visual C# My Articles