Solved

Gridview template

Posted on 2007-03-26
4
325 Views
Last Modified: 2010-04-16
Ok I need to do the following but I have no idea where to start...

col head 1 | col head 2 | col head 3 |col head 4|
DDL 1        |Textbox 1   |Textbox 2  | button      |
data          |data            |data           | data         |
data          |data            |data           | data         |
data          |data            |data           | data         |
data          |data            |data           | data         |
data          |data            |data           | data         |

Thanks I hope you understand what I'm getting at... the button will add data to the gridview... if you understand

Thanks,

Stelly
0
Comment
Question by:stellyuk
  • 2
4 Comments
 
LVL 10

Expert Comment

by:SystemExpert
ID: 18805743
Hi,
I understood from your design that you want

Dropdownlist in 1st col heading
Textbox in 2nd column
Textbox in 3rd column
Button in 4th column

you just edit your header section through custom edit

by clicking on right click on your grid
and you will be able to do what you want
Thanks & Regards
0
 

Author Comment

by:stellyuk
ID: 18808789
yer but what if I want headers in the first row and then Dropdownlist in the second??

Stelly
0
 
LVL 10

Accepted Solution

by:
SystemExpert earned 500 total points
ID: 19126118
check during

if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)

and if it's first row than add your stuff

Thanks & Regards
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now