Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to create Textbox with ellipse button Pin
Ravi Bhavnani18-Mar-14 5:39
professionalRavi Bhavnani18-Mar-14 5:39 
GeneralRe: How to create Textbox with ellipse button Pin
BillWoodruff18-Mar-14 6:07
professionalBillWoodruff18-Mar-14 6:07 
GeneralRe: How to create Textbox with ellipse button Pin
Ravi Bhavnani18-Mar-14 6:33
professionalRavi Bhavnani18-Mar-14 6:33 
AnswerRe: How to create Textbox with ellipse button Pin
Ravi Bhavnani18-Mar-14 5:42
professionalRavi Bhavnani18-Mar-14 5:42 
GeneralRe: How to create Textbox with ellipse button Pin
ahmed_one18-Mar-14 5:51
ahmed_one18-Mar-14 5:51 
GeneralRe: How to create Textbox with ellipse button Pin
Ravi Bhavnani18-Mar-14 6:06
professionalRavi Bhavnani18-Mar-14 6:06 
AnswerMSDN solution Pin
Ravi Bhavnani18-Mar-14 6:08
professionalRavi Bhavnani18-Mar-14 6:08 
AnswerRe: How to create Textbox with ellipse button Pin
BillWoodruff18-Mar-14 6:01
professionalBillWoodruff18-Mar-14 6:01 
A question I think you will need to answer here is whether or not a UserControl can be used in the DataGridView in a way that is satisfactory to you. Some years ago the DataGridView Program Manager at Microsoft wrote this:
"There is no recommended way to do this. The DataGridView only supports hosting a user control as an editing control when a cell is in edit mode. Regarding shared rows/cells. When a row becomes unshared the grid raises the RowUnshared event. To unshare a row, the grid calls the row's clone method which in turn clones all its cells.

For a databound grid, the cells to not get their values set since the cells do not store any data -- the underlying datasource stores the data. In the SetValue and GetValue code for a cell it checks to see if the cell/column/grid is databound and if so just retrieves or sets the value to the datasource. This is why you do not get a SetValue call with values as the grid is being displayed. The cell's GetValue method will be called as the grid is being displayed, so maybe you can use that?"
Another possibility ... which I am not sure will work ... is the idea of sub-classing a TextBox but putting a Label, or Button, inside it which you can wire-up to get the Click Event.

Yes, you can create such a composite Component; I have done so, and used it successfully. But, the question is: will the DataGridView allow you to put such a sub-classed TextBox in one of its TextBox Columns ?

If someone here with more experience with the DataGridView can answer the question if such a sub-classed Component can be used, I'll be happy to post an example.
“The best hope is that one of these days the Ground will get disgusted enough just to walk away ~ leaving people with nothing more to stand ON than what they have so bloody well stood FOR up to now.” Kenneth Patchen, Poet

GeneralRe: How to create Textbox with ellipse button Pin
ahmed_one18-Mar-14 6:18
ahmed_one18-Mar-14 6:18 
GeneralRe: How to create Textbox with ellipse button Pin
BillWoodruff18-Mar-14 7:00
professionalBillWoodruff18-Mar-14 7:00 
AnswerRe: How to create Textbox with ellipse button Pin
Alan N18-Mar-14 7:36
Alan N18-Mar-14 7:36 
GeneralRe: How to create Textbox with ellipse button Pin
ahmed_one18-Mar-14 18:12
ahmed_one18-Mar-14 18:12 
QuestionCalculating the area of a self intersecting polygon Pin
Member 1067580817-Mar-14 23:38
Member 1067580817-Mar-14 23:38 
SuggestionRe: Calculating the area of a self intersecting polygon Pin
Richard MacCutchan18-Mar-14 0:47
mveRichard MacCutchan18-Mar-14 0:47 
QuestionHow to solve a non linear Equation is Visual studio 2012/C# Pin
Nadish Anand17-Mar-14 15:06
Nadish Anand17-Mar-14 15:06 
AnswerRe: How to solve a non linear Equation is Visual studio 2012/C# Pin
Bernhard Hiller17-Mar-14 22:14
Bernhard Hiller17-Mar-14 22:14 
AnswerRe: How to solve a non linear Equation is Visual studio 2012/C# Pin
Matt T Heffron18-Mar-14 8:30
professionalMatt T Heffron18-Mar-14 8:30 
QuestionWhat is used to identify a Generic Type Parameter? Pin
Jörgen Andersson16-Mar-14 10:33
professionalJörgen Andersson16-Mar-14 10:33 
AnswerRe: What is used to identify a Generic Type Parameter? Pin
BillWoodruff16-Mar-14 20:01
professionalBillWoodruff16-Mar-14 20:01 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Jörgen Andersson16-Mar-14 20:59
professionalJörgen Andersson16-Mar-14 20:59 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Pete O'Hanlon17-Mar-14 12:06
mvePete O'Hanlon17-Mar-14 12:06 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
BillWoodruff17-Mar-14 18:51
professionalBillWoodruff17-Mar-14 18:51 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Pete O'Hanlon17-Mar-14 21:15
mvePete O'Hanlon17-Mar-14 21:15 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Jörgen Andersson17-Mar-14 21:53
professionalJörgen Andersson17-Mar-14 21:53 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Pete O'Hanlon17-Mar-14 22:42
mvePete O'Hanlon17-Mar-14 22:42 

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.