Click here to Skip to main content
15,888,109 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I wonder if there is an option to add rows in devexpress GridControl just like we add rows in a normal datagridview.

I dont have a datatable or datasource at this point of adding rows. When the application loads, I should be able to insert rows to the gridview manually. It can be done in a normal datagridview Like this :

C#
dataGridView1.Rows.Add();



I cant find an option in devexpress gridview to do this.

Thanks
Rahul
Posted

1 solution

A lot of methods are there.. To add a simple row to the gridcontrol use the following code
C#
gridView1.AddNewRow();
 
Share this answer
 
Comments
Rahul Krishnan R 12-Dec-13 1:16am    
I tried this and didn't work. could you please provide me a working code sample ?
Sadique KT 12-Dec-13 4:41am    
please post the part of code .. thats what you tried...

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