|
-
December 11th, 2008, 07:30 AM
#1
datagridview change value in cell in editmode programmatically
Version : C# 2008 express
I have a datagridview with one row.
When I am in cell 3 I enter editmode and type something, eg 6
Now when I press F2 of F5 a new window has to open with the text from the cell as parameter
First I could also not get the keyevents from the datagridview, so I set formpreview to true and used the keyevents from the form instead, that part also does work.
In that form I get a list of id numbers starting with that 6 (but its all string values)
If I click a value of that list the form has to close (dialogresultok) and passing the value to the parent form (e.g. 60003)
Now I want to have that value entered into the cell I pressed F2/F5 in.
And thats the part that does not work.
Also tried with EditedFormattedValue, but that seems to be read-only
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|