Click here to Skip to main content
15,885,365 members
Home / Discussions / C#
   

C#

 
QuestionSplit Name Field Pin
kruegersck5-Nov-09 1:58
kruegersck5-Nov-09 1:58 
AnswerRe: Split Name Field Pin
musefan5-Nov-09 2:30
musefan5-Nov-09 2:30 
AnswerRe: Split Name Field Pin
Shameel5-Nov-09 2:33
professionalShameel5-Nov-09 2:33 
AnswerRe: Split Name Field Pin
V.5-Nov-09 4:21
professionalV.5-Nov-09 4:21 
AnswerRe: Split Name Field Pin
PIEBALDconsult5-Nov-09 5:34
mvePIEBALDconsult5-Nov-09 5:34 
GeneralRe: Split Name Field Pin
Luc Pattyn5-Nov-09 12:51
sitebuilderLuc Pattyn5-Nov-09 12:51 
QuestionHow to Hide MenuBar/ToolBar while displaying Office Document using Web Browser? Pin
muhammad_umair5-Nov-09 1:22
muhammad_umair5-Nov-09 1:22 
QuestionIs there a better way for updating bound controls when updating the data source manually? Pin
TheFoZ5-Nov-09 0:40
TheFoZ5-Nov-09 0:40 
Hi
I have a form that has text boxes and combos bound to fields in an object. When the user is using the form they have the option to apply some default values to some of the fields. I was hoping that I would just have to either update the control with the value or just update the field in the object. When I update the field in the object, the form will not refresh with the new values until another field on the form is changed. If I update the control, the field in the object does not update.

My way around this was to update both like this

case "LOGCERT_LEVEL_":
    logginCertCombo.SelectedValue = newValue;
    staff.LogCert = newValue;
    break;


To me that is a bit ugly Dead | X|

Is there a way to do this automatically? My controls are bound like this
logginCertCombo.DataBindings.Add("SelectedValue", staff, "LogCert");

I've tried google and today it is not being my friend.

Many Thanks

The FoZ

AnswerRe: Is there a better way for updating bound controls when updating the data source manually? Pin
Gerry Schmitz5-Nov-09 15:34
mveGerry Schmitz5-Nov-09 15:34 
GeneralRe: Is there a better way for updating bound controls when updating the data source manually? Pin
TheFoZ5-Nov-09 22:23
TheFoZ5-Nov-09 22:23 
GeneralRe: Is there a better way for updating bound controls when updating the data source manually? Pin
Gerry Schmitz6-Nov-09 6:57
mveGerry Schmitz6-Nov-09 6:57 
AnswerRe: Is there a better way for updating bound controls when updating the data source manually? Pin
TheFoZ9-Nov-09 23:13
TheFoZ9-Nov-09 23:13 
Generalcasting struct to list<object></object> Pin
manowj4-Nov-09 23:43
manowj4-Nov-09 23:43 
GeneralRe: casting struct to list Pin
OriginalGriff5-Nov-09 0:14
mveOriginalGriff5-Nov-09 0:14 
GeneralRe: casting struct to list [modified] Pin
manowj5-Nov-09 0:35
manowj5-Nov-09 0:35 
GeneralRe: casting struct to list Pin
OriginalGriff5-Nov-09 0:53
mveOriginalGriff5-Nov-09 0:53 
QuestionRead text from notepad in c# Pin
krinaljariwala4-Nov-09 22:43
krinaljariwala4-Nov-09 22:43 
AnswerRe: Read text from notepad in c# Pin
Covean4-Nov-09 23:16
Covean4-Nov-09 23:16 
GeneralRe: Read text from notepad in c# Pin
krinaljariwala4-Nov-09 23:38
krinaljariwala4-Nov-09 23:38 
GeneralRe: Read text from notepad in c# Pin
Covean4-Nov-09 23:44
Covean4-Nov-09 23:44 
GeneralRe: Read text from notepad in c# Pin
krinaljariwala5-Nov-09 0:04
krinaljariwala5-Nov-09 0:04 
QuestionExplanation on "DSO" Pin
Joe Rozario4-Nov-09 22:25
Joe Rozario4-Nov-09 22:25 
AnswerMessage Closed Pin
4-Nov-09 22:30
stancrm4-Nov-09 22:30 
GeneralRe: Explanation on "DSO" Pin
Joe Rozario4-Nov-09 22:40
Joe Rozario4-Nov-09 22:40 
GeneralMessage Closed Pin
4-Nov-09 22:43
stancrm4-Nov-09 22:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.