Advertisement

06.05.2008 at 10:48AM PDT, ID: 23461230
[x]
Attachment Details

Problems comparing Value = {}

Asked by mathieu_cupryk in .NET, C# Programming Language, Microsoft Visual C#.Net

The following should be execute?
 int rowcount = this.dataGridView1.BindingContext[this.dataGridView1.DataSource].Count-1;
           
            // Get specific row selected.
            dr = ds.Tables[0].Rows[this.currRow.Index];
           
            // Mode 1
            // No Effective Date therefore draft
            // Select Not Approved row with effective date null and the last row in the grid
            if ((dataGridView1.SelectedRows[0].Cells[7].Value == null) && (rowcount >= this.dataGridView1.CurrentRow.Index))
               ModeType = modeEnum.mode1;

It seems that this does not work (dataGridView1.SelectedRows[0].Cells[7].Value == null)
maybe another variable empty?

       Start Free Trial
[+][-]06.05.2008 at 11:23AM PDT, ID: 21722471

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET, C# Programming Language, Microsoft Visual C#.Net
Sign Up Now!
Solution Provided By: Maxem
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.05.2008 at 11:48AM PDT, ID: 21722703

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 12:35PM PDT, ID: 21723111

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 05:04PM PDT, ID: 21725094

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628