Subscribe to Subscribers
Talk to Webmaster Tony John


Forums » .NET » Windows »

Datagridvie adding checkbox..????


Posted Date: 04 Mar 2008      Posted By:: venkatesan.M     Member Level: Gold    Member Rank: 31     Points: 2   Responses: 2



Hii

I am working with CSharp - Windows Application..

Here i have datagridview , i am binding the data to my datagridview..

then how can i add check box to my datagridview...

pls explain clearly..

Regards,
M.Venkatesan.

For Interview Question and Answers:
http://dotnet-interview-qa.blogspot.com

http://venkatdotnetexperiments.wordpress.com
Dot Net Code Snippets




Responses

#197821    Author: Kalyan      Member Level: Gold      Member Rank: 277     Date: 04/Mar/2008   Rating: 2 out of 52 out of 5     Points: 2

<asp:TemplateColumn>
<HeaderTemplate>
<TABLE cellSpacing="0" cellPadding="0">
<TR>
<TD class="Title1" align="center" rowSpan="2"><INPUT title="Check All" onClick="SelectAll(this)" type="checkbox" name="SelectAllCheckBoxRecommend">
</TD>
</TR>
</TABLE>
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox id="SelectRecommendCheckBox" onclick="UnCheckSelectAll(this)" ToolTip="Check/Uncheck"
Runat="Server"></asp:CheckBox>
</ItemTemplate>



 
#197823    Author: silpa      Member Level: Gold      Member Rank: 0     Date: 04/Mar/2008   Rating: 2 out of 52 out of 5     Points: 2

Hi,

When you place mouse on the Datagridview,you will find a small arrow button on the top of it.
Clicking the arrow button will open a popup with heading "DataGridView Tasks". In that popup,click on the Add Column link.

It will open another popup window with heading "Add Column".In that you will find
Type: dropdownlist

From this dropdownlist,you select DataGridViewCheckBoxColumn and click "Add" button.
This will add check box to datagridview.



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : Datagridview in windows appplication
Previous : Datagridview...with checkbox..???
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.