GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  DataGrid
Go To First  |  Previous Question  |  
 DataGrid  |  Question 14 of 14    Print  
how to add controls in datagrid

  
Total Answers and Comments: 5 Last Update: November 30, 2009     Asked by: kbs.shohaib 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Saravan987
 
If you want to add the controls on the grid, you can use item template.

Example:

<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="Chk" runat="server" />
</ItemTemplate>
</asp:TemplateField>

Above answer was rated as good by the following members:
vaishalibharat
July 15, 2008 01:48:42   
anjani Member Since: November 2005   Contribution: 2    

RE: how to add controls in datagrid
hi

To add the controls in datagrid right click on the data grid it shows the smart tag from which u select the edit column then a window appears in which certain fields r there like:

1. BoundField
2. CheckBoxField
3. HyperlinkField
4. ImageField
5. ButtonField
6. CommandField
7. TemplateField

select any of the field according to ur proj req like if u select the BoundField the it will add the "Button" in the Row in the same way u can add other controls by using these fields.

 
Is this answer useful? Yes | No
September 04, 2008 07:18:36   
Dipali Shah Member Since: August 2008   Contribution: 3    

how to add controls in datagrid
For adding controls in datagrid first you have to add available templates of datagrid whichever you want that is ItemTemplate EditTemplate.

In that template you can write any ASP control normally.

 
Is this answer useful? Yes | No
November 24, 2008 06:53:30   
dsk4u Member Since: August 2008   Contribution: 1    

RE: how to add controls in datagrid
To add Controls in Datagrid take template column and add new controls in that template column.
 
Is this answer useful? Yes | No
November 29, 2009 23:46:21   
Saravan987 Member Since: November 2009   Contribution: 1    

RE: how to add controls in datagrid
If you want to add the controls on the grid you can use item template.

Example:

<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID "Chk" runat "server" />
</ItemTemplate>
</asp:TemplateField>

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 30, 2009 05:35:08   
nymishore Member Since: November 2009   Contribution: 1    

RE: how to add controls in datagrid
Take template column and and Insert the Controls what ever you want to add the dataGrid and find those control in Grid Itembound/ItemCommand.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape