🔒 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
  • 977
    Views
  • 4
    Participants
Last reply from:
KanekiKenIssei

Trending Topics

Online now

Members online
1,377
Guests online
8,022
Total visitors
9,399

Forum statistics

Threads
2,329,418
Posts
29,248,104
Members
1,156,423
Latest member
butch_pogi
Back
Top