Gosh - I went through this too.
The detail is really too long to paste into this post - it involves events and delegates.
Make your popup forms classes which your main form instanciates but only shows when necessary. Set up delegates and events to mirror changes in the called form in the main...
You don't mention the underlying datasource for your grid - dataset, dataview, etc.
Let's assume it's a dataset.
After populating the dataset and before setting the datasource for the grid, you might course the dataset and make the necessary adjustments, then set the datasource for the grid...
I think Chip H. is on the right track.
If that doesn't work, try also:
if (rInner["ICD9Seq"].ToString().CompareTo(r["ICD9Seq"].ToString())== 0) { bTmp = true; }
This would apply if the types are strings.
Use CompareTo to compare strings.
C# Programming (Wrox) is good.
For some excellent examples and explanations try MCAD/MCSD (Que). This is a training guide and has been most valuable to me.
Good hunting!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.