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

Trending Topics

Online now

Members online
525
Guests online
1,348
Total visitors
1,873

Forum statistics

Threads
2,285,412
Posts
29,029,907
Members
1,219,441
Latest member
axojay12
Back
Top