Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
Changing DataFormatString on the Server
posted

Is it possible to change the DataFormatString of a bound column in on the Server Side in response to a button click?

I have a webdatagrid with some data in Percentages.  In Edit mode, I need the column to be shows as a numeric so that the users can edit it. 

How can I do this?

(PS.  I used to be able to do this in the UltraWebGrid with a piece of code like this. 

UltraWebGrid1.Columns(2).Format = "###,###,###.####"

I could then switch it back to a percentage like this.

 

UltraWebGrid1.Columns(2).Format = "###.##%"

 

 

I am finding this upgrade to WebDataGrid VERY DIFFICULT.  The documentation is so imcomplete.  There are barely any examples showing up when I search "DataFormatString" on the Infragistics website.

It seems like you should just be able to say something like WebDataGrid.Columns("ColumnName").DataFormatString = "#,###"  or something like that.

Can someone please help?