Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~10K People Reached
Favorite Forums
Member Avatar for markthien

hello, I got the below exception while trying to update the datagridview after adding a record into microsoft access database: [COLOR="Red"]c# rows cannot be programmatically added to the datagridview's rows collection when control is data -bound[/COLOR] using below code: [CODE] private void btnAddOne_Click(object sender, EventArgs e) { string name = …

Member Avatar for LP...
0
4K
Member Avatar for markthien

Hi guys, is there any build-in function in C# that can detect if a string contain Chinese/Japanese character? This string may contain alphabet, numeric, chinese and japanese characters. Appreciate any advice please. Thanks in advance! Cheers, Mark

Member Avatar for toyumail
1
4K
Member Avatar for markthien

Hi guys, I am able to delete record from specified table when I just run the program from visual studio 2008. I am using ms access as database. My connection string is: Provider=Microsoft.Jet.OLEDB.4.0;data source=" + @Directory.GetCurrentDirectory() + "\\smsmanager.mdb;Jet OLEDB:Database Password=matmat However, after setup and deployed in Program Files folder and …

Member Avatar for gusano79
0
441
Member Avatar for markthien

Hi guys, I have implemented pagination in datagridview by using example from this page [url]http://www.codeproject.com/KB/miscctrl/Pagable_DatagridView.aspx[/url]. The pagination works well. However, when I create 2 datagridview with each using different bindingsource, and I click on next for the first datagridview, the other datagridview also automatically paginate to the next one. I …

Member Avatar for nick.crane
0
166
Member Avatar for markthien

Hello, I have created a datagridview with first column is checkbox like below: [CODE] dgv.Columns[0].Visible = false; dgv.Columns[1].HeaderText = "Name"; if (dgv.Name.Equals("dataGridView1")) dgv.Columns[1].Width = 100; if (dgv.Name.Equals("dataGridView2")) dgv.Columns[1].Width = 145; dgv.Columns[2].HeaderText = "Mobile Number"; dgv.Columns[2].Width = 115; dgv.Columns[3].HeaderText = "Date Added"; dgv.Columns[3].Width = 95; dgv.Columns[4].Visible = false; dgv.Columns[5].HeaderText = "Group"; …

Member Avatar for Geekitygeek
0
1K
Member Avatar for markthien

Hello, I have created a query as follow in ms access: [CODE]SELECT cont.id, cont.name, cont.mobile_num, cont.date_created, memb.group_id, grp.name FROM (contact AS cont LEFT JOIN contact_group_member AS memb ON memb.contact_id=cont.id) LEFT JOIN contact_group AS grp ON grp.id=memb.group_id WHERE cont.removed=False ORDER BY cont.id DESC;[/CODE] and I created a 2nd query to query …

Member Avatar for Geekitygeek
0
140
Member Avatar for markthien

Hello, my code is below: [CODE] private void Form1_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'sampleDataSet.contact_Query' table. You can move, or remove it, as needed. //this.contact_QueryTableAdapter.Fill(this.sampleDataSet.contact_Query); OleDbConnection aConnection = new OleDbConnection(dbconnection); OleDbCommand aCommand = new OleDbCommand("select id, name, mobile_num, date_created from contact …

Member Avatar for markthien
0
114