How do I add a column of buttons to a bound DataGrid control?

  • Thread starter Thread starter acool
  • Start date Start date
A

acool

I have been trying to do this for hours with only limited success. I have
no idea why MS makes something that should be so straight forward a real
pain. Can anyone point me in the right direction?
 
You know i appreciate the help i really do but do you mean to tell me there
isn't a simplier way to do this? This is WAY complicated to simply add a
column of buttons.
 
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
 
add a template column to the data grid(Under the property window click
property builder)
right click on the datagrid and click edit template column. Now pull a
button control in the template column, right click and click end edit.
Your done
I hope this solves your problem
 
Back
Top