on 12-29-2015 9:18 AM
Hi guys how can I check if the value in a grid cell has been changed?
Right now I have this:
if (((pVal.FormType == 992 & pVal.ItemUID == "MyGrid" && pVal.EventType != SAPbouiCOM.BoEventTypes.et_VALIDATE) & (pVal.Before_Action == false)))
{
if (pVal.ColUID == "Amount")
{
}
}
I want to do something if the value in a column is changed.
thanks
Hi,
In the validate After event on the column, you have to check if the value is changed by the property of pval (ItemChanged):
pVal.ItemChanged
your code will look like that :
if (((pVal.FormType == 992 & pVal.ItemUID == "MyGrid" && pVal.EventType == SAPbouiCOM.BoEventTypes.et_VALIDATE) & (pVal.BeforeAction == true) ))
{
if (pVal.ColUID == "Amount" & pVal.ItemChanged)
{
}
}
Regards.
Mohamed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.