I have a DataTable which is populated from database. In one of its column i have comma separated values. I want to remove comma and put the line break so that when i bind it to the GridView it shows line breaks instead of comma seperated values.
I have a DataTable which is populated from database. In one of its column
Share
A simple approach for an ASP.NET
GridView:Bound a
DataTablewith some numbers to it, here’s the result:Of yourse it’s also possible to use a nested
GridViewand bind it inRowDataBoundof the outer grid. But that’s a more difficult approach with some drawbacks which might be too much in this case.