Advertisement

05.31.2008 at 05:54PM PDT, ID: 23447516
[x]
Attachment Details

Cannot Implicityly convert type 'object' to 'int'. An explicit conversion exists

Asked by kwh3856 in Microsoft Visual C#.Net

Tags: Microsoft, Visual Studio 2005, C#, Cannot convert type object

I am trying to extract a cell from a row in a table and store it in a variable.  I thought I had defined everything properly but obviously I am missing something.  Can someone point out the obvious?

Here is the code:

int SelectedReferralQueueId;
        SelectedReferralQueueId = this.ReferralListWebGrid.DisplayLayout.SelectedRows[0].Cells.FromKey("REFERRAL_QUEUE_ID").Value;--------------------squiggle line under the word "this"Start Free Trial
[+][-]05.31.2008 at 09:38PM PDT, ID: 21686048

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

Zone: Microsoft Visual C#.Net
Tags: Microsoft, Visual Studio 2005, C#, Cannot convert type object
Sign Up Now!
Solution Provided By: ororiole
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.01.2008 at 03:24AM PDT, ID: 21686515

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

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

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