Connecting Tech Pros Worldwide Forums | Help | Site Map

finding records from database and displaying in datagrid

Newbie
 
Join Date: Nov 2008
Posts: 1
#1: Nov 2 '08
Hi,
I m doing a project in VB.NET.
I've created form and database connectivity is done.
I've displayed data in Datagrid through which user can sort and find records.
for finding the records, one combo box is used in which column name is given.
when user select the perticular column name then in the text box he should write the data which he wants to search.
eg: If he select "Name" column in combo box then he writes name in the textbox such as "Priya" and click on Find Button then related data should be displayed in Datagrid.

kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#2: Nov 2 '08

re: finding records from database and displaying in datagrid


On the onselectedchange event you could run a sql command and then bind to the result to the datagrid. Is this what you had in mind?
Reply