Results 1 to 3 of 3

Thread: [RESOLVED] DataBind LinkLabel Text Property

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2003
    Posts
    758

    Resolved [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!
    My.Settings.Signature = String.Empty

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    Re: DataBind LinkLabel Text Property

    why would a linklabel have changes?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2003
    Posts
    758

    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.
    My.Settings.Signature = String.Empty

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width