Click here to Skip to main content
16,009,728 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
hi how to show when i slect dropdowns perticular items and click search button and from that items how to show record from sql table to gridview control..

for example:

dropdownlist conatains..[shan]
if i select shan i want to show his records to grid view..how to show?
Posted
Updated 14-Feb-12 0:48am
v3

This might[^] help you get started.
 
Share this answer
 
when you click on search button then pass this item as
C#
protected DataTable GetAnnexRecord(string sPointId,DataTable dt)
    {
        DataView dv = dt.DefaultView;
        dv.RowFilter = "sPoint='" + sPointId + "'";
        DataTable dt1 = dv.ToTable();
        return dt1;
    }


now this datatable bind to gridview
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900