Click here to Skip to main content
15,860,972 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generaluse C header file in a VB project Pin
Marc Soleda9-Apr-08 1:03
Marc Soleda9-Apr-08 1:03 
GeneralRe: use C header file in a VB project Pin
Christian Graus9-Apr-08 2:07
protectorChristian Graus9-Apr-08 2:07 
GeneralRe: use C header file in a VB project Pin
Marc Soleda9-Apr-08 4:15
Marc Soleda9-Apr-08 4:15 
GeneralRe: use C header file in a VB project Pin
Dave Kreskowiak9-Apr-08 5:32
mveDave Kreskowiak9-Apr-08 5:32 
GeneralRe: use C header file in a VB project Pin
Marc Soleda9-Apr-08 5:55
Marc Soleda9-Apr-08 5:55 
GeneralDataGridView cancel update Pin
nitin_ion9-Apr-08 1:00
nitin_ion9-Apr-08 1:00 
GeneralRe: DataGridView cancel update Pin
Dave Kreskowiak9-Apr-08 5:44
mveDave Kreskowiak9-Apr-08 5:44 
GeneralRe: DataGridView cancel update Pin
nitin_ion9-Apr-08 19:52
nitin_ion9-Apr-08 19: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
aaraaayen8-Apr-08 23:09
aaraaayen8-Apr-08 23:09 
GeneralRe: VB Connection String with MS Access - By using MAC address instead of IP Address Pin
Christian Graus9-Apr-08 0:08
protectorChristian Graus9-Apr-08 0:08 
GeneralRe: VB Connection String with MS Access - By using MAC address instead of IP Address Pin
aaraaayen9-Apr-08 0:14
aaraaayen9-Apr-08 0:14 
GeneralRe: VB Connection String with MS Access - By using MAC address instead of IP Address Pin
Christian Graus9-Apr-08 0:34
protectorChristian Graus9-Apr-08 0:34 
GeneralRe: VB Connection String with MS Access - By using MAC address instead of IP Address Pin
Steven J Jowett9-Apr-08 0:42
Steven J Jowett9-Apr-08 0:42 
GeneralRe: VB Connection String with MS Access - By using MAC address instead of IP Address Pin
aaraaayen9-Apr-08 1:09
aaraaayen9-Apr-08 1:09 
GeneralRe: VB Connection String with MS Access - By using MAC address instead of IP Address Pin
Dave Kreskowiak9-Apr-08 5:25
mveDave Kreskowiak9-Apr-08 5:25 
GeneralThread Pooling Pin
Mycroft Holmes8-Apr-08 22:56
professionalMycroft Holmes8-Apr-08 22:56 
GeneralRe: Thread Pooling Pin
Dave Kreskowiak9-Apr-08 5:27
mveDave Kreskowiak9-Apr-08 5:27 
GeneralRe: Thread Pooling Pin
Mycroft Holmes9-Apr-08 12:39
professionalMycroft Holmes9-Apr-08 12:39 
GeneralRe: Thread Pooling Pin
Dave Kreskowiak9-Apr-08 14:54
mveDave Kreskowiak9-Apr-08 14:54 
GeneralRe: Thread Pooling Pin
Mycroft Holmes9-Apr-08 16:52
professionalMycroft Holmes9-Apr-08 16:52 
GeneralRe: Thread Pooling Pin
Mark Churchill9-Apr-08 21:28
Mark Churchill9-Apr-08 21:28 
GeneralRe: Thread Pooling Pin
Mycroft Holmes9-Apr-08 22:47
professionalMycroft Holmes9-Apr-08 22:47 
GeneralFind my dll's Pin
helelark1238-Apr-08 22:06
helelark1238-Apr-08 22:06 
QuestionProcess Naming Pin
Maffyx8-Apr-08 18:28
Maffyx8-Apr-08 18:28 
GeneralRe: Process Naming Pin
Dave Kreskowiak9-Apr-08 2:34
mveDave Kreskowiak9-Apr-08 2: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.