I have a radgrid and it has dynamically added columns using following code. I have phone number column and I want to apply dataformatstring for this column but it is not getting reflected. What is that I am missing here?
Please help
Thank you
GridBoundColumn boundColumn1 = new GridBoundColumn();RadGrid1.MasterTableView.Columns.Add(boundColumn1);boundColumn1.ItemStyle.Wrap = false;boundColumn1.DataField = "PhoneNumber";boundColumn1.UniqueName = "PhoneNumber";boundColumn1.SortExpression = "PhoneNumber";boundColumn1.HeaderText = "Phone Number";boundColumn1.AllowFiltering = AllowFiltering;boundColumn1.ShowFilterIcon = false;boundColumn1.AutoPostBackOnFilter = true;boundColumn1.DataFormatString = "{0:(###)###-###}";Please help
Thank you