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

Trending Topics

Online now

Members online
404
Guests online
1,282
Total visitors
1,686

Forum statistics

Threads
2,274,140
Posts
28,953,851
Members
1,235,099
Latest member
hiro1985
Back
Top