Hi guys, good day to everyone.
Currently I'm using Infragistics.Win.UltraWinGrid.v3.2.
While executing Grid.InitializeRow, I would like to check the value and update if necessary
I'd tried to update the value using the code below.
e.Row.Cells("Field").Value = HitCount(i) , where HitCount(i) is an array.
I'd also checked that HitCount(i) got the correct value, but the above code didn't update e.Row.Cells("Field").Value.
Please advise what I can do in this issue.
Thanks.
.
Well, the only thing I can think of is that you data source is rejecting the change of value. What's the DataSource of your grid?
Hi, Mike and good day to everyone :)
I tried again what you suggested to check, everything is still the same and still I can't update it :(
Mike Saltzman"] Hi, Currently I'm using Infragistics.Win.UltraWinGrid.v3.2. Wow, that's an old one. :) engloon said: e.Row.Cells("Field").Value = HitCount(i) , where HitCount(i) is an array. I'd also checked that HitCount(i) got the correct value, but the above code didn't update e.Row.Cells("Field").Value. I can't think of any reason why this would not work. What is the value of the cell before and after this line of code fires? Does the Value property return the correct value if you check it immediately after the line of code that sets it? If not, what is it's value? [/quote] Hi, Mike. Indeed, it's old :) The value of the cell before and after is still the same, which is "1" and I got this value from MSSQL. I also tried to check the value immediately right after the the line of code that sets it, it remains "1". I'll try to check again tomorrow morning :)
Hi,
Wow, that's an old one. :)
engloon said: e.Row.Cells("Field").Value = HitCount(i) , where HitCount(i) is an array. I'd also checked that HitCount(i) got the correct value, but the above code didn't update e.Row.Cells("Field").Value.
I can't think of any reason why this would not work. What is the value of the cell before and after this line of code fires? Does the Value property return the correct value if you check it immediately after the line of code that sets it?
If not, what is it's value?
[/quote]
Hi, Mike.
Indeed, it's old :)
The value of the cell before and after is still the same, which is "1" and I got this value from MSSQL. I also tried to check the value immediately right after the the line of code that sets it, it remains "1".
I'll try to check again tomorrow morning :)
engloon said:Currently I'm using Infragistics.Win.UltraWinGrid.v3.2.