Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to add checkbox to datagrid?

Answers were Sorted based on User's Feedback



How to add checkbox to datagrid?..

Answer / kiran

<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False" CellPadding="4">
<Columns>
<asp:BoundField DataField="Status"
HeaderText="PO Status" />

<asp:TemplateField HeaderText="Mark as
Complete" >
<HeaderTemplate>
<asp:CheckBox ID=check runat=server
Checked=false />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="chkComplete"
runat="server" />
</ItemTemplate>
</asp:TemplateField>
</Columns>

</asp:GridView>

Is This Answer Correct ?    19 Yes 6 No

How to add checkbox to datagrid?..

Answer / sriram

we can add checkbox in source of gridview

Is This Answer Correct ?    10 Yes 4 No

How to add checkbox to datagrid?..

Answer / amit kumar

first add itemtemplate in gridview than add checkbox in side
the itemtemplate

Is This Answer Correct ?    8 Yes 2 No

How to add checkbox to datagrid?..

Answer / s.munna

<asp:GridView ID="dgvVerReferral" runat="server"
Height="456px" Width="944px">
<Columns>


<asp:TemplateField HeaderText ="click">
<ItemTemplate >
<asp:CheckBox ID="CheckBox1" runat="server" />
</ItemTemplate>
</asp:TemplateField>


</Columns>
</asp:GridView>

Is This Answer Correct ?    1 Yes 5 No

How to add checkbox to datagrid?..

Answer / swapna

Dim str as string =" "
dim item as datagriditem
dim chk as checkbox
for each item in datagrid1.items
chk=CType(item.findcontrol("ch"),checkbox)
if chk.checked=true then
str=str & "," & item.cells(1).text
end if
next
Response.write(str)

Is This Answer Correct ?    8 Yes 13 No

Post New Answer

More ASP.NET Code Interview Questions

How to get Dynamically Linked Comboboxes Set?

0 Answers   HCL,


How to Create Scrollable Micro Windows?

2 Answers  


HOw to Build a Nested GridView Control with ASP.NET?

2 Answers  


How to Export Data to Excel?

4 Answers   Eastcom Systems,


How to use Client-side Script to Focus Controls in ASP.NET?

0 Answers  


how to convert Dataset to Object Array or list in c# .net

4 Answers  


How we implement the paypal in my website and how we make a payment through Credit Card.

2 Answers  


Code for Presenting Parent/Child Data in a Data Grid Row?

0 Answers   TCS,


ArrayList declaration in .net

0 Answers  


where is assembly are store

5 Answers   C DAC,


Code for a Simple Way to Write XML in .NET (XmlTextWriter)

1 Answers  


how to upload an excel in c# ASP.Net?

3 Answers  


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)