[RESOLVED] DataBind LinkLabel Text Property
I have a LinkLabel on a form that has its Text property bound to a strongly-typed DataSet. When the user closes the page, I call BindingContext.Item(_ds.UserSettings).EndCurrentEdit() and then serialize the data if _ds.HasChanges = True. However, HasChanges is always False.
Has anyone else done this with a LinkLabel?
I just like the LinkLabel in this scenario. I guess I could hide a TextBox off of the side of the form and bind to it, instead.
Thanks in advance!
Re: DataBind LinkLabel Text Property
why would a linklabel have changes?
Re: DataBind LinkLabel Text Property
To answer your question, because I had it change text. The LinkLabel allows the user to select the default printer to use (still use dot matrix printers and got tired of having users change Windows default).
I have since discovered that I wasn't actually databinding the LinkLabels. I created this form some time ago and apparently was asleep at the keyboard. I used databinding and the dataset, but still set the values in code rather than letting the dataset do its job.
I think I have fixed it at this point.