DataGrid Simple search function..again.

Chet

New member
Joined
Mar 14, 2005
Messages
1
Programming Experience
Beginner
Hi,

Im new to the world of Visual Studio and Vb.net and a complete novice needing help on searching a datagrid. I have a datagrid that displays my sql data so far and I need help on adding a search function.

ive checked the posts on this site regarding this but still lost. Could someone please help. Below is my coding I have so far.

PrivateSub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load

IfNot Page.IsPostBack Then

BindGrid()

EndIf

EndSub

Sub BindGrid()

DataSet1 = Cache("DAMAGES")

If DataSet1 IsNothingThen

DataSet1 = New DataSet

SqlDataAdapter1.Fill(DataSet1)

Cache("DAMAGES") = DataSet1

EndIf

DataGrid1.DataSource = DataSet1

DataGrid1.DataBind()

EndSub

End
Class


Any Help would be much appreicated.

Chet.
 
Last edited:
Back
Top