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
1705
How can I set the format of a column at runtime?
posted

I don't set up any columns at design time; this happens automatically when I get my data and do a SetDataBinding().  When some of these columns contain date info, how do I set the format?  I tried setting the format by saying grid.DisplayLayout.Bands[0].Columns[columnName].Format = "d " right after the SetDataBinding, but it didn't change the look of that column.  Should I be doing this in an event of some sort?