UltraGridCell Showing Text But UltradGridCell.Value Returns blank/null

Answered (Verified) This post has 1 verified answer | 2 Replies | 2 Followers Thread's RSS feed.

Lauren
Points 45
Replied On: Thu, Oct 12 2017 12:54 PM Reply

Hello, I am trying to code logic that looks for whether an UltraGridCell.Value!=Null. 

The cell looks like:

But when I run the code, it is perceiving this cell as Null.  Is there another cell property that could be populating this Cell?

Thanks,

Lauren

  • Post Points: 5

Verified Answer

Lauren
Points 45
Answered (Verified) Replied On: Thu, Oct 12 2017 1:46 PM Reply

I have solved with the following:

Since:

ar_trade["counterparty"].ValueList.ToString ()= "HasProxyDetail"

 

Then

ar_trade["counterparty"].ValueList.ItemCount!=0 will tell me if the field is populated with See details....

  • Post Points: 40

All Replies

Lauren
Points 45
Answered (Verified) Replied On: Thu, Oct 12 2017 1:46 PM Reply

I have solved with the following:

Since:

ar_trade["counterparty"].ValueList.ToString ()= "HasProxyDetail"

 

Then

ar_trade["counterparty"].ValueList.ItemCount!=0 will tell me if the field is populated with See details....

  • Post Points: 40
Replied On: Fri, Oct 13 2017 3:01 PM Reply

I am glad that worked for you. My initial thought was you may have had the NullText property set on the Column. NullText works such that, if the value is null, it will display that text.

Mike

Software Development Team Lead
Infragistics, Inc.

  • Post Points: 5
Page 1 of 1 (3 items) | RSS