Solved

Gridview template

Posted on 2007-03-26
4
328 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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

810 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