I know this sounds a little crazy, but we have a grid-based app that we change value in fequently. We were experiencing a problem when calling CellValue to set a value and then again with CellValue = "" to clear it. It wouldn't clear always clear. I tried setting the column style's value for this column to "" at startup. This seemed to help somehow, but I'm getting reports that it is still happening sporadically.
Has anyone experienced this or have a suggestion on what we're doing wrong?
Thanks
HA
haneefm
Syncfusion Team
April 23, 2007 09:09 PM UTC
Hi Dave,
You can try this code snippet to set the cellValue of the cell in a grid.
GridStyleInfo style = this.grid.Model[3,3];
style.CellValue = string.Empty;
this.grid.Model.SetCellInfo(3,3,style,Syncfusion.Styles.StyleModifyType.Override);
Best regards,
Haneef
DW
Dave Wilkins
April 24, 2007 01:33 PM UTC
Thanks, Hanneef.
We tried that and we are still having problems. One additional bit of info is that when we update the cell (say from a '2' to a '1'), we often see a flickering between '1' and '2'. We have to look closely as it only changes to the past value briefly. This may account for why we think it is not changing to ' ' since it must be flickering to the old value.
We are doing NO processing when this flickering occurs. Is there some way I can trap this to make sure that it's not us?
Thanks,
Dave
>Hi Dave,
You can try this code snippet to set the cellValue of the cell in a grid.
GridStyleInfo style = this.grid.Model[3,3];
style.CellValue = string.Empty;
this.grid.Model.SetCellInfo(3,3,style,Syncfusion.Styles.StyleModifyType.Override);
Best regards,
Haneef
DW
Dave Wilkins
April 24, 2007 02:21 PM UTC
Thanks for putting up with us. It was (as you probably suspected) us all along and NO PROBLEM WITH THE GRID.
The Grid Rules!!!
>Thanks, Hanneef.
We tried that and we are still having problems. One additional bit of info is that when we update the cell (say from a '2' to a '1'), we often see a flickering between '1' and '2'. We have to look closely as it only changes to the past value briefly. This may account for why we think it is not changing to ' ' since it must be flickering to the old value.
We are doing NO processing when this flickering occurs. Is there some way I can trap this to make sure that it's not us?
Thanks,
Dave
>Hi Dave,
You can try this code snippet to set the cellValue of the cell in a grid.
GridStyleInfo style = this.grid.Model[3,3];
style.CellValue = string.Empty;
this.grid.Model.SetCellInfo(3,3,style,Syncfusion.Styles.StyleModifyType.Override);
Best regards,
Haneef