Click here to Skip to main content
15,908,842 members
Home / Discussions / C#
   

C#

 
GeneralCheckbox in Datagrid Pin
Anderson F.9-Apr-02 1:29
Anderson F.9-Apr-02 1:29 
Confused | :confused: Hi all,

I've been trying to have a simple checkbox in my datagrid using C# and it's being a pain to get it to work.
Here is the cenario.

I have a DataSet populated with a table "Employees" let's say. This table has fields such id, name, email.
All I want to do is to display an extra column in my datagrid that will display a checkbox for each row.
Note, there is no data associated with this checkbox. I just wanted the user to select some of the Employees from the datagrid by checking the checkbox. Then, when they click the button "Print", I will loop through the datagrid, get the selected ones and print.

Anyone can give me some instructions or example of how to do that?
I've been looking some people examples that do something similar. But they don't really show how to add an extra column to the datagrid with a checkbox for each record of your already populated dataset.

Please, any help will be appreciated.
Thanks to all.

Anderson

Anderson F.
afraga22@hotmail.com
GeneralRe: Checkbox in Datagrid Pin
ClayB9-Apr-02 23:53
ClayB9-Apr-02 23:53 
GeneralRe: Checkbox in Datagrid Pin
Anderson F.10-Apr-02 9:26
Anderson F.10-Apr-02 9:26 
GeneralWe have ASP/ASP.NET Beat Pin
Nick Parker8-Apr-02 17:43
protectorNick Parker8-Apr-02 17:43 
QuestionAm I Missing Something Here? Pin
Nick Parker8-Apr-02 17:08
protectorNick Parker8-Apr-02 17:08 
AnswerRe: Am I Missing Something Here? Pin
Christian Graus8-Apr-02 17:18
protectorChristian Graus8-Apr-02 17:18 
GeneralRe: Am I Missing Something Here? Pin
Nick Parker8-Apr-02 17:24
protectorNick Parker8-Apr-02 17:24 
GeneralRe: Am I Missing Something Here? Pin
David Wengier8-Apr-02 17:30
David Wengier8-Apr-02 17:30 
GeneralRe: Am I Missing Something Here? Pin
Christian Graus8-Apr-02 17:31
protectorChristian Graus8-Apr-02 17:31 
GeneralRe: Am I Missing Something Here? Pin
Nick Parker8-Apr-02 17:38
protectorNick Parker8-Apr-02 17:38 
GeneralRe: Am I Missing Something Here? Pin
Neil Van Note8-Apr-02 17:37
Neil Van Note8-Apr-02 17:37 
GeneralRe: Am I Missing Something Here? Pin
Nick Parker8-Apr-02 17:40
protectorNick Parker8-Apr-02 17:40 
GeneralRe: Am I Missing Something Here? Pin
Neil Van Note8-Apr-02 17:45
Neil Van Note8-Apr-02 17:45 
QuestionHTTP GET request example? Pin
Ravi Bhavnani8-Apr-02 12:39
professionalRavi Bhavnani8-Apr-02 12:39 
AnswerRe: HTTP GET request example? Pin
Ravi Bhavnani8-Apr-02 12:54
professionalRavi Bhavnani8-Apr-02 12:54 
GeneralWindows Messages Pin
Bob Groves8-Apr-02 9:06
Bob Groves8-Apr-02 9:06 
GeneralRe: Windows Messages Pin
James T. Johnson8-Apr-02 11:46
James T. Johnson8-Apr-02 11:46 
QuestionKnow anyone a good .NET/C#/Vb.net/ASP.NET/ADO.NET message board/mailing list/newsletter??????? Pin
gicio8-Apr-02 8:29
gicio8-Apr-02 8:29 
AnswerRe: Know anyone a good .NET/C#/Vb.net/ASP.NET/ADO.NET message board/mailing list/newsletter??????? Pin
James T. Johnson8-Apr-02 9:08
James T. Johnson8-Apr-02 9:08 
GeneralListView...ItemCheck event..make some items hidden..but how?? again.... Pin
gicio8-Apr-02 6:51
gicio8-Apr-02 6:51 
GeneralRe: ListView...ItemCheck event..make some items hidden..but how?? again.... Pin
gicio8-Apr-02 7:37
gicio8-Apr-02 7:37 
GeneralRe: ListView...ItemCheck event..make some items hidden..but how?? again.... Pin
David Wengier8-Apr-02 12:37
David Wengier8-Apr-02 12:37 
GeneralRe: ListView...ItemCheck event..make some items hidden..but how?? again.... Pin
James T. Johnson8-Apr-02 17:05
James T. Johnson8-Apr-02 17:05 
GeneralSubject: using "DockingStyle.Fill" Pin
inbal6668-Apr-02 2:01
inbal6668-Apr-02 2:01 
GeneralRe: Subject: using "DockingStyle.Fill" Pin
Zombies with Coffee, LLC8-Apr-02 11:12
professionalZombies with Coffee, LLC8-Apr-02 11:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.