Hi,
probably someoneelse already ask it but i didn't find the right post.
In my grid the first column is a commandcolumn. I use it for open a modal form, to chose the Article from the Warehouse.
When i choose it, i update some columns, like price, max quantity, idarticle, etc
But if i try to insert a new row in this way, i got an error.
In a previous post: "the new row is created when one or more of editors in the new row are open for the first time".
I can't do this, because the first operation is to chose the Article.
How can i solve this problem? There is a way to fire the command it creates the row?
Thank you
Ellis
probably someoneelse already ask it but i didn't find the right post.
In my grid the first column is a commandcolumn. I use it for open a modal form, to chose the Article from the Warehouse.
When i choose it, i update some columns, like price, max quantity, idarticle, etc
But if i try to insert a new row in this way, i got an error.
In a previous post: "the new row is created when one or more of editors in the new row are open for the first time".
I can't do this, because the first operation is to chose the Article.
How can i solve this problem? There is a way to fire the command it creates the row?
Private Sub RadGridView1_CommandCellClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadGridView1.CommandCellClick |
' I chose the article from warehouse |
'... |
' Then i set data in row from selected article |
RadGridView1.CurrentRow.Cells("IdArticle").Value = IdArticle |
RadGridView1.CurrentRow.Cells("Quantity").Value = Quantity |
RadGridView1.CurrentRow.Cells("Price").Value = Price |
RadGridView1.CurrentRow.Cells("DataMovimento").Value = Date.Today |
End If |
End Sub |
Thank you
Ellis