0
Hii Amit,
Your reply is enough to solve my problem!!! :)
I just try something and got it done. after your reply I consider to do it again with datatable.
i was doing...
{
dgvFruits.ColumnCount = 1;
dgvFruits.Columns[0].Width = 300;
DataTable dt = dgvFruits.DataSource as DataTable;
dt.Rows.Add(cmbFruits.SelectedText);
}
then i changed it to... (just experiments)
{
DataTable dt = dgvFruits.DataSource as DataTable;
dt.Rows.Add(cmbFruits.SelectedText);
dgvFruits.Columns[0].Width = 300;
}
and now I can add more rows..
Thank you so much.
P.S. Can you please check another problem regarding to CheckedListBox it is still unanswered. May your reply make it solved!!
Thanks again...
Mayank Jani.
0
Please post your relevant code with expected output, so that I can look at your issue
0
Hiiii Amit,
Nice to see you dear,
yes you are right, I have seen that and other options on net but not get my answer. Would you please teach me how to do that, if possible? I want to do it with gridview only as my application is designed that way. I hope you understood my query. my problem got arise after retrieve a data (record) from database. when trying to add one or more row to update/rectify the record, i get this error.
and, could you please check my another query regarding to CheckedListBox?
Thank You. :)
Mayank Jani