Hello:
I am using an unbound column with a Style set to Checkbox to indicate if a User Account is locked or not.
If the Locked_Date is not null, then the user_account is locked and this is checked. Otherwise, it's not checked.
This I do after I fill my dataset. But when I close the form, it tells me that I have changed the data and if I wanted to commit the changes (I've implemented the code that determines if the dataset has changed or not.).
But the problem is that the data has not changed. It's just that I have filled the unbound column with a calculated value.
Any idea how I can prevent it from determining that the dataset has changed since it was filled?
Venki
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
Hello ,
By default the changes onto unbound column, have no effect onto the underlying data source. So if you have a dataset, populate it with data, accept the changes, bound UltraGrid to this dataset, add unbound column, make any changes onto unbound column, call HasChanges() of the dataset, it will reruns false. Please run the attached sample and change some values in “Bool” column. Press ultraButton1 in order to determine if the changes onto unbound column “Bool” have any effect onto the dataset.
Please let me know if you have any further questions or if I am missing something.
Hristo:
I guess that's one creative way of getting around the problem. If only we can differntiate between bound and unbound columns! That way, changes to the unbound columns do not set the statusof the dataset updated.
First you should commit changes of your dataset after you populate it with data. Then you could use HasChances() method of the DataSet in order to check if there is any changes onto the Dataset.
Please let me know if you have any further questions.