🔒 Closed Paano po codes sa c# datagridview

Status
Not open for further replies.

Picathuu

Forum Veteran
i have text box and button name of the button ay search paano po ma search ang data from database to display in datagridview help
 
una gamit ka ng class.mas madali coding dun isang connect lang then ttawagin mo kada form .if sa search lagay ka txtbox name if (txtSearch) then lagay kana din ng combobox for choosing the category para dyan muna din llagay yung validation mo .
code
string search="";
switch(combobox.SelectedIndex){
case 0:
sql = "SELECT * FROM students WHERE SNo LIKE '%" + txtSearch.Text + "%'";
break;
}
crudtools.Filldatagrid("select * from tbletc",ref dataGridView);
 
Status
Not open for further replies.

About this Thread

  • 5
    Replies
  • 983
    Views
  • 4
    Participants
Last reply from:
KanekiKenIssei

Trending Topics

Online now

Members online
446
Guests online
4,918
Total visitors
5,364

Forum statistics

Threads
2,350,867
Posts
29,369,027
Members
1,087,948
Latest member
Gunejay1
Back
Top