Click here to Skip to main content
15,921,941 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Notify Parent Form of close Pin
K. Shaffer23-Feb-06 4:31
K. Shaffer23-Feb-06 4:31 
QuestionToolstrip/Menustrip Pin
kenexcelon22-Feb-06 9:27
kenexcelon22-Feb-06 9:27 
AnswerRe: Toolstrip/Menustrip Pin
RichardBerry23-Feb-06 0:12
RichardBerry23-Feb-06 0:12 
QuestionWindows Application type or Console Application type? Pin
Slow Learner22-Feb-06 9:13
Slow Learner22-Feb-06 9:13 
AnswerRe: Windows Application type or Console Application type? Pin
Joshua Quick22-Feb-06 12:47
Joshua Quick22-Feb-06 12:47 
QuestionFilter data in DataGridView Pin
Brian Holdridge22-Feb-06 9:00
Brian Holdridge22-Feb-06 9:00 
AnswerRe: Filter data in DataGridView Pin
RichardBerry22-Feb-06 22:38
RichardBerry22-Feb-06 22:38 
GeneralRe: Filter data in DataGridView Pin
Brian Holdridge24-Feb-06 2:34
Brian Holdridge24-Feb-06 2:34 
Thanks. Your code did exactly what I needed to do. I tweaked it somewhat. Here it is.

Private Sub txtSysName_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSysName.TextChanged
'if nothing in textbox, display all rows
If Me.txtSysName.Text.Trim.Length = 0 Then
DataGridView1.DataSource = ds.Tables(0)
Msg.Text = "System count: " & DataGridView1.Rows.Count
Exit Sub
End If

'create dataview and populate with dataset populated in form load
Dim dv As New DataView(ds.Tables(0))

With dv
.Table = ds.Tables(0)
'.AllowDelete = True
'.AllowEdit = True
'.AllowNew = True
.RowFilter = "vchrName LIKE '" & Me.txtSysName.Text & "*'"
.RowStateFilter = DataViewRowState.CurrentRows
.Sort = "vchrName ASC"
End With
'reset grid datasource to contents of new dataview
DataGridView1.DataSource = dv

'display row count
Msg.Text = "System count: " & DataGridView1.Rows.Count
End Sub
QuestionPassing object from one form to another Pin
G7236022-Feb-06 8:52
G7236022-Feb-06 8:52 
AnswerRe: Passing object from one form to another Pin
Joshua Quick22-Feb-06 13:09
Joshua Quick22-Feb-06 13:09 
QuestionDatagrids and the Date....... Pin
daviiie22-Feb-06 6:34
daviiie22-Feb-06 6:34 
AnswerRe: Datagrids and the Date....... Pin
RichardBerry22-Feb-06 20:59
RichardBerry22-Feb-06 20:59 
QuestionPassing Arrays of structures from VB.NET to unmanaged C++ Pin
CPop22-Feb-06 6:17
CPop22-Feb-06 6:17 
QuestionHow to use an HttpWebClientProtocol class Pin
Hohnerman2022-Feb-06 6:03
Hohnerman2022-Feb-06 6:03 
QuestionHow do i assign variables in VB.NET? Pin
Slow Learner22-Feb-06 5:26
Slow Learner22-Feb-06 5:26 
AnswerRe: How do i assign variables in VB.NET? Pin
ToddHileHoffer22-Feb-06 5:53
ToddHileHoffer22-Feb-06 5:53 
GeneralRe: How do i assign variables in VB.NET? Pin
Slow Learner22-Feb-06 6:02
Slow Learner22-Feb-06 6:02 
GeneralRe: How do i assign variables in VB.NET? Pin
MohammadAmiry23-Feb-06 5:13
MohammadAmiry23-Feb-06 5:13 
QuestionNeed help on String manipulation Pin
Slow Learner22-Feb-06 5:20
Slow Learner22-Feb-06 5:20 
AnswerRe: Need help on String manipulation Pin
Jason McBurney22-Feb-06 5:23
Jason McBurney22-Feb-06 5:23 
GeneralRe: Need help on String manipulation Pin
Slow Learner22-Feb-06 5:37
Slow Learner22-Feb-06 5:37 
GeneralRe: Need help on String manipulation Pin
Jason McBurney22-Feb-06 5:44
Jason McBurney22-Feb-06 5:44 
GeneralRe: Need help on String manipulation Pin
Slow Learner22-Feb-06 5:52
Slow Learner22-Feb-06 5:52 
GeneralRe: Need help on String manipulation Pin
Jason McBurney22-Feb-06 6:36
Jason McBurney22-Feb-06 6:36 
GeneralRe: Need help on String manipulation Pin
Slow Learner22-Feb-06 8:14
Slow Learner22-Feb-06 8:14 

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.