By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

about datagridview databound control

P: 3
I have error that is- Rows cannot be programtically added data bound control.
This error occurs when i click on 'Add to Cart' button in my project to add the one record at a time in datagridview.
in this button control i used the logic like datagridview.rows.add(), datagridview.rowcount-2
but this error occur. so give me solution.
Aug 28 '13 #1
Share this Question
Share on Google+
2 Replies

P: 3
when I click on 'ADD To CART' button then following error occur.- Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound.
Coding of 'ADD TO CARCT' button
Private Sub btncart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btncart.Click
dgv.Rows(dgv.RowCount - 2).Cells(0).Value = ComboBox1.Text
dgv.Rows(dgv.RowCount - 2).Cells(1).Value = tunit.Text
dgv.Rows(dgv.RowCount - 2).Cells(2).Value = tqty.Text
dgv.Rows(dgv.RowCount - 2).Cells(3).Value = tamt.Text
End Sub
Aug 28 '13 #2

P: 3
When i set the marathi font to textbox in using property window it set properly bu when i run and type in textbox then it does not show properly. for example when o press 'k' letter on keyboard the it does not show 'ka' in marathi. so give me solution what extraa additon in project to set marathi font to label and textbox
Aug 28 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.