Click here to Skip to main content
15,909,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dynamically add rows to existing radgrid GridBoundColumn datafield.How can i do it.
Posted

1 solution

I can not fully understand your Question?


However which i undrstood em replying.



private void AddRow()
        {
            DataGridViewRow dgvr = new DataGridViewRow();
            //your columns name in col1,col2....
            dgvr.Cells["col1"].Value = "";
            dgvr.Cells["col2"].Value = "";
            dgvr.Cells["col3"].Value = "";
            dgvr.Cells["col4"].Value = "";
            dgvr.Cells["col5"].Value = "";
            dgvr.Cells["col...n"].Value = "";
            dataGridView1.Rows.Add(dgvr);


            //OR                    //Values according to columns
            dataGridView1.Rows.Add("value1", "value1", "value1", "value1", "value1", "value ..n");
        }


Thanx
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900