Hello,
How can I insert a row in a Grid?
By example I have 4 records in a grid and I have to insert a new row as first and the rest I want to move down.
The single solution is to move the data in array, sort and move back to the grid? ..or have somebody some more elegant solution?
Thank You.
Zoli B.
How to insert a row in a Grid?
Moderator: Rathinagiri
- zolysoftsolutions
- Posts: 139
- Joined: Wed Feb 29, 2012 3:33 am
- Location: Gyulakuta, Erdélyország
- Contact:
How to insert a row in a Grid?
_______________________________
Open eyes for you!
Open eyes for you!
Re: How to insert a row in a Grid?
Zoli B.
Use AddItemEx method.
From HMG documentation:
<ParentWindowName>.<GridControlName>.AddItemEx ( aItem, nRow )
Set nRow := 1
Use AddItemEx method.
From HMG documentation:
<ParentWindowName>.<GridControlName>.AddItemEx ( aItem, nRow )
Set nRow := 1
- zolysoftsolutions
- Posts: 139
- Joined: Wed Feb 29, 2012 3:33 am
- Location: Gyulakuta, Erdélyország
- Contact:
Re: How to insert a row in a Grid?
Thank you very much my friends.
_______________________________
Open eyes for you!
Open eyes for you!