Handling blank spaces between strings in infragistics ultrawebgrid (grid column)


I faced a strange problem while binding string data in infragistics ultrawebgrid column of data type System.String.My string data contains two consecutive blank (empty) spaces interleaved EX: “K100K01  EH 1000” (two blank spaces between “K100K01” and “EH”) and during databinding to the ultrawebgrid, it rendered as “K100K01 EH 1000” i.e. one blank space has been stripped off. After little poking in to the ultrawebgrid colum properties I found out “HTMLEncodeContent” and which needs to be set as true i.e. HTMLEncodeContent=”true” to make the grid column render the sting as it is without losing double/multi spaces in the string data. This details have not been mentioned clearly in the infragistics help. Though this problem sounds simple but can lead to disaster based on the business requirement.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s