Click here to Skip to main content
15,887,267 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB Script program Pin
twinkle126-Apr-10 7:30
twinkle126-Apr-10 7:30 
GeneralRe: VB Script program Pin
Dave Kreskowiak26-Apr-10 8:05
mveDave Kreskowiak26-Apr-10 8:05 
GeneralRe: VB Script program Pin
Dalek Dave26-Apr-10 21:37
professionalDalek Dave26-Apr-10 21:37 
QuestionHow to Merger cells in Datagridview (vb.Net) Pin
Noufe24-Apr-10 0:20
Noufe24-Apr-10 0:20 
AnswerRe: How to Merger cells in Datagridview (vb.Net) Pin
Estys24-Apr-10 2:56
Estys24-Apr-10 2:56 
GeneralRe: How to Merger cells in Datagridview (vb.Net) Pin
jpaulino26-Apr-10 7:05
jpaulino26-Apr-10 7:05 
GeneralRe: How to Merger cells in Datagridview (vb.Net) Pin
Estys26-Apr-10 20:44
Estys26-Apr-10 20:44 
QuestionData Grid View With Default Values Pin
Tp5harp23-Apr-10 23:00
Tp5harp23-Apr-10 23:00 
I have a small issue with a bound data grid view. Let me try to explain as best I can.

To add a row in a data grid view you simply click on the bottom row of the grid, this header row icon changes from * to >* to show you are adding a new row. As soon as you edit any of the cells in the row the icon changes to a pencil and a new blank row appears underneath. To save the changes to the row you are adding (not to the SQL database just to the data grid), you simply hit return or select the new blank row underneath. To cancel your changes hit escape.

The problem I have is that I am setting the default values of all cells when a new row is added. These default values in most cases will be correct. But for the user to be able to commit the row they have to edit one of the cells (so that the pencil icon appears), then either hit return or select the new row.

What I am trying to do when the user clicks a new row is to set the default values and automatically set it to this "Pencil" mode. Allowing the user to hit escape if they do now want to make the changes, but also hit return or select the next row to make the changes. I have tried forcing the cell into edit mode but this does not fix the issue.

I would be grateful for any ideas.



Thanks.
Questionvb.net Pin
askshara23-Apr-10 21:57
askshara23-Apr-10 21:57 
AnswerRe: vb.net Pin
Estys23-Apr-10 23:25
Estys23-Apr-10 23:25 
AnswerRe: vb.net Pin
Abhinav S24-Apr-10 0:52
Abhinav S24-Apr-10 0:52 
AnswerRe: vb.net Pin
Richard MacCutchan24-Apr-10 2:00
mveRichard MacCutchan24-Apr-10 2:00 
QuestionHow To Create Same Application In MAC Pin
Anubhava Dimri23-Apr-10 19:50
Anubhava Dimri23-Apr-10 19:50 
AnswerRe: How To Create Same Application In MAC Pin
Dave Kreskowiak23-Apr-10 20:08
mveDave Kreskowiak23-Apr-10 20:08 
GeneralRe: How To Create Same Application In MAC Pin
Anubhava Dimri23-Apr-10 20:49
Anubhava Dimri23-Apr-10 20:49 
GeneralRe: How To Create Same Application In MAC Pin
Eddy Vluggen24-Apr-10 3:10
professionalEddy Vluggen24-Apr-10 3:10 
QuestionHow to link text boxes in VB 2008 with the Access database records? Pin
Razanust23-Apr-10 19:14
Razanust23-Apr-10 19:14 
AnswerRe: How to link text boxes in VB 2008 with the Access database records? Pin
Anubhava Dimri23-Apr-10 19:55
Anubhava Dimri23-Apr-10 19:55 
QuestionRepeater No. of repeats! Pin
Dayekh22-Apr-10 3:20
Dayekh22-Apr-10 3:20 
AnswerRe: Repeater No. of repeats! Pin
Eddy Vluggen22-Apr-10 4:06
professionalEddy Vluggen22-Apr-10 4:06 
QuestionHow do I find the name of ther user who created a file. Pin
Steven J Jowett22-Apr-10 1:32
Steven J Jowett22-Apr-10 1:32 
AnswerRe: How do I find the name of ther user who created a file. Pin
David Skelly22-Apr-10 2:02
David Skelly22-Apr-10 2:02 
GeneralRe: How do I find the name of ther user who created a file. Pin
Steven J Jowett22-Apr-10 2:38
Steven J Jowett22-Apr-10 2:38 
GeneralRe: How do I find the name of ther user who created a file. Pin
Gregory Gadow22-Apr-10 4:09
Gregory Gadow22-Apr-10 4:09 
GeneralRe: How do I find the name of ther user who created a file. Pin
Steven J Jowett23-Apr-10 1:04
Steven J Jowett23-Apr-10 1:04 

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.