Actually what i want to do is, display a table content to the grid view and allow user to delete from the grid view.
For the delete function, i am thinking about having a checkbox and a button outside DataGridView. After the user check the data they want to delete(s), they will click the delete button. When the button click, it will check the checked checkbox and delete. That's why i assign the ID value to the checkbox, so it could...
User Profile
Collapse
-
C# APP, Assign value from database to checkbox in DataGridView
Hi, i am new to windows application.
I have successfully list DataGridView with contain in a table.
Code:SqlConnection conn = new SqlConnection(map); string sql = "Select * from Table_Name"; SqlDataAdapter adap = new SqlDataAdapter(sql, conn); SqlCommandBuilder build = new SqlCommandBuilder(adap); DataTable dt = new DataTable("Table_Name"); adap.Fill(dt); dataGridView1.DataSource
-
C# APP "CheckedListBox to array"
Hi, i am fresh grad and having some problems. the problems as below and iIt is quiet urgent.........
i have two CheckedListBox (CLBa and CLBb) , and i want the user selected CheckedListBox is assign to two dimension array.
Objective:
There is a sql statement (select * from tblname where field1= ' ' OR field2=' '),
i want to allow user to choose the data for filetring,
where
- field1... -
C# - APP 'CheckedListBox into array'
Hi, can anyone help me on this problem. It is quiet urgent......
i have two CheckedListBox (CLBa and CLBb) , and i want the user selected CheckedListBox is assign to two dimension array.
Objective:
There is a sql statement (select * from tblname where field1= ' ' OR field2=' '),
i want to allow user to choose the data for filetring,
where...Leave a comment:
-
Solved
Hi,
Somehow i manage to solve the previous post problem....
not sure whether it is long or what....
but it is working and able to generate the sql statement perfectly from the list box 2......
Thank You
..............Leave a comment:
-
C# APP Generate Dynamic SQL Statement from ListBox
hi, i am fresh grad and wondering whether this idea can be done..
i have 1 ComboBox and 2 ListBox. ComboBox contain list of table, when user select a table, it will list the field name for selected table in ListBox1. The ListBox2 will list the selected field name by user. It will display in list box with this format "tablename.fiel dname". So far i have done until this.
Now i am wondering whether can create...
No activity results to display
Show More
Leave a comment: