Click here to Skip to main content
15,921,531 members
Home / Discussions / C#
   

C#

 
GeneralRe: Benchmark not Benching Pin
J a a n s23-Apr-08 22:42
professionalJ a a n s23-Apr-08 22:42 
GeneralRe: Benchmark not Benching Pin
Reelix23-Apr-08 22:57
Reelix23-Apr-08 22:57 
GeneralRe: Benchmark not Benching Pin
c242323-Apr-08 23:33
c242323-Apr-08 23:33 
GeneralRe: Benchmark not Benching Pin
Reelix23-Apr-08 23:37
Reelix23-Apr-08 23:37 
GeneralRe: Benchmark not Benching Pin
c242323-Apr-08 23:40
c242323-Apr-08 23:40 
GeneralDatagrid Issue Pin
Member 400849223-Apr-08 21:23
Member 400849223-Apr-08 21:23 
GeneralRe: Datagrid Issue Pin
Harini N K23-Apr-08 22:28
Harini N K23-Apr-08 22:28 
GeneralRe: Datagrid Issue Pin
John_Adams23-Apr-08 22:41
John_Adams23-Apr-08 22:41 
Hi Sri,

I have another way to do this, we can take the following steps:

1). Make a usercontrol to host buttons, the CustomButtonControl class which inherited from usercontrol.

2). Create a CustomButtonControl instance(NOTICE: we just need one), add it into the control collection of the DataGridView, initially make it invisible.

3). Handle the DataGridView.CellPainting event to draw a textbox and button style on the cell, which make the cell looked like some kind hosting a usercontrol in it.

4). Handle the DataGridView.CellBeginEdit event to show the usercontrol right in the cell while editing, you can edit in the textbox in the usercontrol and click the button, write your logic in the Click event of the button, I just show a message box for example in this sample.

5). Handle the DataGridView.CellEndEdit event to update the cell value.

6). Handle the DataGridView.Scroll event to reset the location and size of the usercontrol while scrolling. Without handling this, the usercontrol would stay still while scrolling.

Hope this will help you in moving forward in your task Smile | :) .

Regards,
John Adams
ComponentOne LLC

GeneralDynamically allocate memory for Struct Objects Pin
cute7868523-Apr-08 21:09
cute7868523-Apr-08 21:09 
GeneralRe: Dynamically allocate memory for Struct Objects Pin
Giorgi Dalakishvili23-Apr-08 21:18
mentorGiorgi Dalakishvili23-Apr-08 21:18 
GeneralRe: Dynamically allocate memory for Struct Objects Pin
Guffa23-Apr-08 21:50
Guffa23-Apr-08 21:50 
QuestionClickOnce Config File Problem Pin
Programm3r23-Apr-08 20:51
Programm3r23-Apr-08 20:51 
QuestionGraphic Problem Pin
Reza Shojaee23-Apr-08 20:30
Reza Shojaee23-Apr-08 20:30 
GeneralRe: Graphic Problem Pin
Giorgi Dalakishvili23-Apr-08 20:56
mentorGiorgi Dalakishvili23-Apr-08 20:56 
GeneralRe: Graphic Problem Pin
Reza Shojaee23-Apr-08 21:06
Reza Shojaee23-Apr-08 21:06 
GeneralRe: Graphic Problem Pin
Giorgi Dalakishvili23-Apr-08 21:08
mentorGiorgi Dalakishvili23-Apr-08 21:08 
GeneralRe: Graphic Problem Pin
Reza Shojaee23-Apr-08 21:16
Reza Shojaee23-Apr-08 21:16 
GeneralWaitOne with 0 as timeout value Pin
George_George23-Apr-08 20:23
George_George23-Apr-08 20:23 
Generalproblem with DataBase Path While uploading Images Pin
avvaru.murali23-Apr-08 20:14
avvaru.murali23-Apr-08 20:14 
GeneralRe: problem with DataBase Path While uploading Images Pin
Spunky Coder23-Apr-08 20:30
Spunky Coder23-Apr-08 20:30 
GeneralRe: problem with DataBase Path While uploading Images Pin
avvaru.murali23-Apr-08 20:36
avvaru.murali23-Apr-08 20:36 
GeneralRe: problem with DataBase Path While uploading Images Pin
Spunky Coder23-Apr-08 21:04
Spunky Coder23-Apr-08 21:04 
GeneralBandWidth Programming in C# Pin
Balaji.KJ23-Apr-08 19:34
Balaji.KJ23-Apr-08 19:34 
GeneralRe: BandWidth Programming in C# Pin
MumbleB23-Apr-08 20:16
MumbleB23-Apr-08 20:16 
GeneralClose an HTTPListenerResponse.OutputStreram Pin
George_George23-Apr-08 19:02
George_George23-Apr-08 19:02 

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.