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

Trending Topics

Online now

Members online
1,197
Guests online
3,933
Total visitors
5,130

Forum statistics

Threads
2,306,218
Posts
29,170,399
Members
1,194,717
Latest member
shanglei1986
Back
Top