Click here to Skip to main content
15,912,082 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: two dimensional array in vb.net Pin
Dave Kreskowiak23-Jul-07 3:21
mveDave Kreskowiak23-Jul-07 3:21 
QuestionBranching a solution Pin
Salvador Rocha22-Jul-07 17:55
Salvador Rocha22-Jul-07 17:55 
AnswerRe: Branching a solution Pin
Luc Pattyn23-Jul-07 2:51
sitebuilderLuc Pattyn23-Jul-07 2:51 
GeneralRe: Branching a solution Pin
Salvador Rocha23-Jul-07 9:34
Salvador Rocha23-Jul-07 9:34 
GeneralRe: Branching a solution Pin
Luc Pattyn23-Jul-07 9:46
sitebuilderLuc Pattyn23-Jul-07 9:46 
GeneralRe: Branching a solution Pin
Salvador Rocha23-Jul-07 13:47
Salvador Rocha23-Jul-07 13:47 
GeneralRe: Branching a solution Pin
Luc Pattyn23-Jul-07 14:13
sitebuilderLuc Pattyn23-Jul-07 14:13 
QuestionDataGridView committing a value in a cell. Pin
steve_rm22-Jul-07 12:49
steve_rm22-Jul-07 12:49 
Hello,

I have a datagridview that has a combo box column with some items in it.

I click the item in the combo box and based on what the user has clicked on to, it should EndEdit. However, i have to click on another cell for the edit to complete.

I have tried using EndEdit thinking that it should end the edit in that combo box cell. However, the customer would like to end the edit in the cell as soon as they click an item.

I have posted the code for the selected_item event for the comb box, if this is helpful.

Private Sub dgvPendingOrders_EditingControlShowing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles dgvPendingOrders.EditingControlShowing<br />
<br />
If TypeOf e.Control Is DataGridViewComboBoxEditingControl Then<br />
Me.dgvPendingCbo = DirectCast(e.Control, DataGridViewComboBoxEditingControl)<br />
End If<br />
End Sub<br />
<br />
Private Sub dgvPendingCbo_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgvPendingCbo.SelectedIndexChanged<br />
Try<br />
'Do something here<br />
'End the edit<br />
End If<br />
        Catch ex As Exception<br />
            MsgBox(ex.Message)<br />
        End Try<br />
    End Sub

Many thanks for any help,

Steve
AnswerRe: DataGridView committing a value in a cell. Pin
Psycho-*Coder*-Extreme22-Jul-07 15:04
Psycho-*Coder*-Extreme22-Jul-07 15:04 
QuestionSave As A Chosen Date. Pin
frankiebaby222-Jul-07 12:28
frankiebaby222-Jul-07 12:28 
AnswerRe: Save As A Chosen Date. Pin
frankiebaby222-Jul-07 14:23
frankiebaby222-Jul-07 14:23 
AnswerRe: Save As A Chosen Date. [modified*3] Pin
Psycho-*Coder*-Extreme22-Jul-07 15:02
Psycho-*Coder*-Extreme22-Jul-07 15:02 
GeneralRe: Save As A Chosen Date. Pin
Christian Graus22-Jul-07 15:34
protectorChristian Graus22-Jul-07 15:34 
GeneralRe: Save As A Chosen Date. Pin
Psycho-*Coder*-Extreme22-Jul-07 15:41
Psycho-*Coder*-Extreme22-Jul-07 15:41 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
frankiebaby222-Jul-07 22:49
frankiebaby222-Jul-07 22:49 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
RichardBerry23-Jul-07 2:53
RichardBerry23-Jul-07 2:53 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
frankiebaby223-Jul-07 9:35
frankiebaby223-Jul-07 9:35 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
frankiebaby223-Jul-07 15:31
frankiebaby223-Jul-07 15:31 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
RichardBerry23-Jul-07 22:00
RichardBerry23-Jul-07 22:00 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
frankiebaby223-Jul-07 22:22
frankiebaby223-Jul-07 22:22 
QuestionHTML Editor in Vb.net Pin
phyrrix22-Jul-07 6:46
phyrrix22-Jul-07 6:46 
AnswerRe: HTML Editor in Vb.net Pin
ne0h22-Jul-07 7:02
ne0h22-Jul-07 7:02 
AnswerRe: HTML Editor in Vb.net Pin
Naji El Kotob22-Jul-07 8:08
Naji El Kotob22-Jul-07 8:08 
Questionupdateing db Pin
stupid122-Jul-07 3:26
stupid122-Jul-07 3:26 
AnswerRe: updateing db Pin
stupid122-Jul-07 3:27
stupid122-Jul-07 3:27 

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.