.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Windows Application >> Post New QuestionBookmark and Share Subscribe to Forum

checked box checked defaultly...

Posted By: Jayakumar     Posted Date: March 23, 2010    Points:2   Category :Windows Application
hi,

with windows app + c#

i had added checkbox column through "edit columns" porperty of datagridview.


while running application, the checkbox column seems to be checked defaultly ,..

i tried but i couldnt find proper way..

regards
jai

Responses
Author: Lalij Mer             
Posted Date: March 23, 2010     Points: 5   

check this link

http://www.c-sharpcorner.com/Forums/ShowMessages.aspx?ThreadID=77491

Please Check my answer if you help....
Thank You...

Lalit.
Author: Jayakumar             
Posted Date: March 23, 2010     Points: 5   

hi lalit,

thanx for ur kind reply..

i am having datagridview in windows application with C# coding...

regards
jai

Author: Lalij Mer             
Posted Date: March 23, 2010     Points: 5   


Hi,
you will help this link


http://aspalliance.com/136_DataGrid_and_Checkboxes

Please Check my answer if you help....
Thank You...

Lalit.
Author: Narayanan             
Posted Date: February 28, 2012     Points: 20   

Hi,
try this code
  foreach (DataGridViewRow dr in dataGridView1.Rows)
{

if (dr.Cells[0].Value == null) //Cells[0] Because in cell 0th cell we have added checkbox
{

dr.Cells[0].Value = true;

}


Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend