Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
3.33/5 (3 votes)
Hi programmers.

Does anyone know how to have a space or tab or indent a gridview inside a gridview?

Im doing a nested Gridview and i want to indent the inside gridview to show that it is under a certain topic.

&nbsp; <---- not working.

just simply have spaces isnt working too and when i type the text is just simple above the gridview.

how can i have it indented like this:

Parent Gridview
(tab space)Child Gridview

please help.

i really want it to have a style like it for our project.

thanks programmers/developers.

btw: im using asp.net and javascript for nested gridview.

I really want to indent the child gridview.

thanks guys!

more power. ;)
Posted
Updated 22-Nov-11 18:08pm
v4
Comments
Sergey Alexandrovich Kryukov 21-Nov-11 21:24pm    
Just a note: you need to know some HTML before working with ASP.NET, in this case you would not waste time for multiple space characters. You need to use CSS.
--SA
Al Moje 22-Nov-11 21:05pm    
Try answer below if could help:

XML
Hi,

Use &#160 instead of &amp;nbsp;

Example:

<body>
<form id="form1" runat="server">
<div>
Test
<br />
&#160&#160&#160&#160&#160&#160&#160ok
</div>
</form>
</body>
 
Share this answer
 
Hey Al Moje. thanks i got spaces but I want to have spaces inline with the gridview its like:

Parent Gridview
(tab space) Child Gridview

I tried that and it looked like this:
Parent Gridview
(spaces/text)
Child Gridview

But thank you very much at least i have now some choices for spacing. thanks! please help me. i really need to know it. have a great day! :)
 
Share this answer
 
Comments
André Kraak 23-Nov-11 1:19am    
If you have a question about or comment on a given solution use the "Have a Question or Comment?" option beneath the solution. When using this option the person who gave the solution gets an e-mail message and knows you placed a comment and can respond if he/she wants.

Please move the content of this solution to the solution you are commenting on and remove the solution.
Thank you.
Ariel Riyo 23-Nov-11 18:07pm    
i left a comment in his given solution before i wrote this. please see it for yourself. i preffered to write in solution to emphasize the output design. please get back on Al Moje's solution and see my comment. if you want to make it sure refer to its time. sorry for that an thank you very much for your time. :)
thank for the great ideas and help guys! It really helped me. thanks a lot!

i think it is automatically indented or you can you the align command and equal it to center and then check the width of your parent gridview if its long enough to emphasize the tab space/indent of the parent gridview.

more power! :D
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900