i need a code for this please
-
now i made this code
cmd.CommandText = "select distinct * from reglz where fatrname LIKE '%" & TextBox1.Text & "%' " DataGridView1.Refresh() ad.SelectCommand = cmd ad.Fill(ds, "reglz") DataGridView1.DataSource = ds.Tables("reglz")
this code will give me some data in the datagride so what i need to do now is ,to select a number of records to edit in the "fatrname" filed from datagrideview but after i select these number of records i dont know how to edit all the field of this "fatrname" or any field for all the records that i select please help me very importnat -
now i made this code
cmd.CommandText = "select distinct * from reglz where fatrname LIKE '%" & TextBox1.Text & "%' " DataGridView1.Refresh() ad.SelectCommand = cmd ad.Fill(ds, "reglz") DataGridView1.DataSource = ds.Tables("reglz")
this code will give me some data in the datagride so what i need to do now is ,to select a number of records to edit in the "fatrname" filed from datagrideview but after i select these number of records i dont know how to edit all the field of this "fatrname" or any field for all the records that i select please help me very importnat1 - use real variable names 2 - this code is ripe for SQL injection attacks, you should read up on this and fix it 3 - try using sensible subject lines, so people know what you want At the end of all that, I'm not sure if a datagridview supports editing fields. What does google say ?
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
1 - use real variable names 2 - this code is ripe for SQL injection attacks, you should read up on this and fix it 3 - try using sensible subject lines, so people know what you want At the end of all that, I'm not sure if a datagridview supports editing fields. What does google say ?
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )