Solved

Gridview template

Posted on 2007-03-26
4
332 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

705 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