Unfortuantely, this is the easiest way with the .NET Framework DataGrid
class. You can get commercial grid controls (and perhaps some shareware or
open source ones) that have more functionality, but the basic DataGrid is
sort of limited.
Syncfusion has an EXCELLENT datagrid product, but it's also got a tremendous
amount of functionality including a variety of control types for cells.
ComponentOne has a grid control with more control types as well, but when it
comes to getting more bang for your buck, despite costing a little more, I
think Syncfusion's grid is a much better value.
Take my comments with a grain of salt. I've done some beta testing for
Syncfusion in the past, so maybe I'm a bit biased, but I think their control
is excellent (actually, I think all their controls are pretty excellent).
Pete