Click here to Skip to main content
15,893,381 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 ,I have a datasource from database but i need add first row Manual then add datasores. It can be done in a normal datagridview Like this :


What I have tried:

datagridview1.Rows.Clear();

Dim I = datagridview1.Row.add
datagridview1.row.add(i).Cells(1).Value="test"

*********************

**** fill gridview1 from database
Dim h dt.Rows.Count
For M=0 to dt.Rows.Conunt-1
     Dim f = datagridview1.Rows.add
           datagridview1.Rows(f).Cells(0).value=dt.Rows(M).Item
 Next
Posted
Updated 20-Aug-20 18:31pm

1 solution

 
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