Click here to Skip to main content
15,796,102 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generaluse C header file in a VB project Pin
Marc Soleda9-Apr-08 2:03
Marc Soleda9-Apr-08 2:03 
GeneralRe: use C header file in a VB project Pin
Christian Graus9-Apr-08 3:07
protectorChristian Graus9-Apr-08 3:07 
GeneralRe: use C header file in a VB project Pin
Marc Soleda9-Apr-08 5:15
Marc Soleda9-Apr-08 5:15 
GeneralRe: use C header file in a VB project Pin
Dave Kreskowiak9-Apr-08 6:32
mveDave Kreskowiak9-Apr-08 6:32 
GeneralRe: use C header file in a VB project Pin
Marc Soleda9-Apr-08 6:55
Marc Soleda9-Apr-08 6:55 
GeneralDataGridView cancel update Pin
nitin_ion9-Apr-08 2:00
nitin_ion9-Apr-08 2:00 
GeneralRe: DataGridView cancel update Pin
Dave Kreskowiak9-Apr-08 6:44
mveDave Kreskowiak9-Apr-08 6:44 
GeneralRe: DataGridView cancel update Pin
nitin_ion9-Apr-08 20:52
nitin_ion9-Apr-08 20:52 
Dim dt As New DataTable
Dim ad As New SqlClient.SqlDataAdapter("Select Top 5 * from T010011", "server=.; database=WSS_4;uid=sa;pwd=; current language=us_english")

Private Sub Form5_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim cb As New SqlClient.SqlCommandBuilder(ad)
ad.Fill(dt)
DataGridView1.DataSource = dt
DataGridView1.EditMode = DataGridViewEditMode.EditOnEnter
End Sub

Private Sub GlassButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GlassButton1.Click
ad.Update(dt)
End Sub

Private Sub DataGridView1_CellEndEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit
DataGridView1.Rows(e.RowIndex).Cells(1).Value = My.Resources.top_left_back
End Sub


Private Sub DataGridView1_CellValueChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellValueChanged
If DataGridView1.Rows.Count > 0 Then
'DataGridView1.Rows(e.RowIndex).Cells(1).Value = My.Resources.top_left_back 'CType(iconColumn, DataGridViewImageColumn)
End If
End Sub

Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
If e.ColumnIndex = 0 Then
DataGridView1.CancelEdit()
Else

End If
End Sub

//////////////////////////

A user can edit 10 rows and in the end wants to update only 5 of them so rest he can cancel by clicking cancel button in the Grid.
GeneralVB Connection String with MS Access - By using MAC address instead of IP Address Pin
aaraaayen9-Apr-08 0:09
aaraaayen9-Apr-08 0:09 
GeneralRe: VB Connection String with MS Access - By using MAC address instead of IP Address Pin
Christian Graus9-Apr-08 1:08
protectorChristian Graus9-Apr-08 1:08 
GeneralRe: VB Connection String with MS Access - By using MAC address instead of IP Address Pin
aaraaayen9-Apr-08 1:14
aaraaayen9-Apr-08 1:14 
GeneralRe: VB Connection String with MS Access - By using MAC address instead of IP Address Pin
Christian Graus9-Apr-08 1:34
protectorChristian Graus9-Apr-08 1:34 
GeneralRe: VB Connection String with MS Access - By using MAC address instead of IP Address Pin
Steven J Jowett9-Apr-08 1:42
Steven J Jowett9-Apr-08 1:42 
GeneralRe: VB Connection String with MS Access - By using MAC address instead of IP Address Pin
aaraaayen9-Apr-08 2:09
aaraaayen9-Apr-08 2:09 
GeneralRe: VB Connection String with MS Access - By using MAC address instead of IP Address Pin
Dave Kreskowiak9-Apr-08 6:25
mveDave Kreskowiak9-Apr-08 6:25 
GeneralThread Pooling Pin
Mycroft Holmes8-Apr-08 23:56
professionalMycroft Holmes8-Apr-08 23:56 
GeneralRe: Thread Pooling Pin
Dave Kreskowiak9-Apr-08 6:27
mveDave Kreskowiak9-Apr-08 6:27 
GeneralRe: Thread Pooling Pin
Mycroft Holmes9-Apr-08 13:39
professionalMycroft Holmes9-Apr-08 13:39 
GeneralRe: Thread Pooling Pin
Dave Kreskowiak9-Apr-08 15:54
mveDave Kreskowiak9-Apr-08 15:54 
GeneralRe: Thread Pooling Pin
Mycroft Holmes9-Apr-08 17:52
professionalMycroft Holmes9-Apr-08 17:52 
GeneralRe: Thread Pooling Pin
Mark Churchill9-Apr-08 22:28
Mark Churchill9-Apr-08 22:28 
GeneralRe: Thread Pooling Pin
Mycroft Holmes9-Apr-08 23:47
professionalMycroft Holmes9-Apr-08 23:47 
GeneralFind my dll's Pin
helelark1238-Apr-08 23:06
helelark1238-Apr-08 23:06 
QuestionProcess Naming Pin
Maffyx8-Apr-08 19:28
Maffyx8-Apr-08 19:28 
GeneralRe: Process Naming Pin
Dave Kreskowiak9-Apr-08 3:34
mveDave Kreskowiak9-Apr-08 3:34 

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.