ado
-
DA1 = new SqlDataAdapter("select * from tbmohasebe where tarikh = '"+comboBox1.Text +"'" , conn1); DA1.Fill(dt1); //dt1 is Data table dataGridView1.DataSource = dt1; how can i hide some of columns in datatable that don't show in datagrid?
Use a specific select list...
select field1, field2, field3 from Table where blah blah blah...
Visit BoneSoft.com -
DA1 = new SqlDataAdapter("select * from tbmohasebe where tarikh = '"+comboBox1.Text +"'" , conn1); DA1.Fill(dt1); //dt1 is Data table dataGridView1.DataSource = dt1; how can i hide some of columns in datatable that don't show in datagrid?
-
DA1 = new SqlDataAdapter("select * from tbmohasebe where tarikh = '"+comboBox1.Text +"'" , conn1); DA1.Fill(dt1); //dt1 is Data table dataGridView1.DataSource = dt1; how can i hide some of columns in datatable that don't show in datagrid?