473,779 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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?
Nov 20 '05 #1
5 1414
http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q888q

"acool" <no**@sendme.co m> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
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?

Nov 20 '05 #2
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.

<pd******@hotma il.com> wrote in message
news:3e******** *************** *******@news.me ganetnews.com.. .
http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q888q

"acool" <no**@sendme.co m> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
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?


Nov 20 '05 #3
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

"acool" <no**@sendme.co m> wrote in message
news:eH******** *******@TK2MSFT NGP09.phx.gbl.. .
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.

<pd******@hotma il.com> wrote in message
news:3e******** *************** *******@news.me ganetnews.com.. .
http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q888q

"acool" <no**@sendme.co m> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
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?



Nov 20 '05 #4
Hi Acool,

In addition to pda....

Complete free controls (The first is from William Ryan and friends, the
second from someone who was a while a regular in the dotnet newsgroups,
however we do not see him a while now )

<http://www.knowdotnet. com/articles/kdngrid.html>

<http://dotnet.leadit.b e/extendeddatagri d>

Button
http://www.i-syn.gmxhome.de/devcom/c...trolbutton.htm

Faqs
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp

http://www.microsoft.com/belux/nl/ms.../datagrid.mspx

http://msdn.microsoft.com/library/de...stDataGrid.asp

http://msdn.microsoft.com/library/de...ormattopic.asp
Nov 20 '05 #5
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

"acool" <no**@sendme.co m> wrote in message
news:eH******** *******@TK2MSFT NGP09.phx.gbl.. .
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.

<pd******@hotma il.com> wrote in message
news:3e******** *************** *******@news.me ganetnews.com.. .
http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q888q

"acool" <no**@sendme.co m> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
> 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?
>
>



Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2355
by: Raj | last post by:
Hi, When we are sorting the DataGrid Boolean column the grid is becoming redcross. I have my own PPMIPDataGridBoolColumn class inherited from System.Windows.Forms.DataGridBoolColumn. In this inherited class I have one DataGridValueChangedEventHandler event handler. I am overriding Edit() to know the current state of the cell. I am overriding Paint() to know the if the user has been editing the cell. I am also overriding the Commit() to
2
2114
by: | last post by:
Hello All, I am having a lot of difficulty trying to bind a templated column, that is programmatically created for a datagrid, to a datasource column. I have a datasource containing 2 columns, ID and VALUE. I would like to create a templated column in the datagrid that is bound to the VALUE column of the datasource.
4
1854
by: Mike | last post by:
Hi, Is there a possibility to have one of the Web Control Datagrid's column as a Calendar when editing data? Any resources on this subject? Thanks Mike
1
4237
by: sianan | last post by:
I tried to use the following example, to add a checkbox column to a DataGrid in an ASP.NET application: http://www.codeproject.com/aspnet/datagridcheckbox.asp For some reason, I simply CAN'T get the example to work. I created the following two classes, provided with the example: *-*-**-*-*-*-*-*-*-*-*-*-**-*-*-*-*-CheckBoxColumn Class:-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-**-*-*-*
1
10242
by: ElenaR | last post by:
I need to figure out how to name my column headers in a DataGrid. In VB6, I could write DataGrid1.Columns(0).Caption = "ID". What is the format for VB.NET? Thanks in Advance!
4
2454
by: Grace | last post by:
I use a datagrid included in a repeater. as following: (.aspx) <asp:repeater id="rp_perform" Runat="server"> <HeaderTemplate> <table border="0" bgcolor="gray" cellspacing="0" cellpadding="0"> </HeaderTemplate> <ItemTemplate> <tr bgcolor="white"> <td width="100%">
3
3546
by: TPhelps | last post by:
I have a sample of an unbound (autogeneratecolumns is true) sortable/pagable datagrid that works. I want to change one of the columns to a hyperlink. The examples I find use a bound column. I can get this to work; however, the column header on the datagrid is not a link/sortable. What am I missing? Thanks in advance.
4
2918
by: gane | last post by:
Hi, I am creating datagrid bound column dynamically and need to check if a datagrid column already exists?Is there a way to check this? thanks gane
6
2566
by: Opa | last post by:
Hi, I have a DataGrid, whose sourceI am exporting to Excel. This works fine except for the Column ordering. My datasource is not a datatable, with a typical SELECT statement where I can select the column orders. Instead the datasource is a class which implements IList, containing a collection of my data. My problem again is that I don't know how to control the order of the columns that are exported.
0
9632
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9471
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10071
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8958
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7478
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6723
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5501
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4036
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.