When working with web pages, remember that browsers often do not
render spaces as such. This might be one possible reason why your
simulated indentation does not work.
Try using " " as a non-breaking space:
newName = " " + row("Name")
On Aug 27, 9:47 pm, Ana <[email protected]> wrote:
> Hi,
>
> In my page I have a GridView and I'm binding it in the code behind.
> The data in my gridView should appear similar to a directory structure
> (but in my case using a TreeView doesn't apply). So my GridView should
> be like this:
>
> Name 1
> Name 1.1
> Name 1.2
> Name 2
> Name 2.1
> Name 2.1.1
>
> To do this, I'm updating the value for the column "Name" in the
> DataTable used to populate the GridView. For example, for Name 1.1,
> I'm doing:
> newName = " " + row("Name")
> row("Name") = newName
>