datagridview inside checkbox..

Posted by Gopal_nivas under C# on 4/1/2010 | Views : 3643 | Status : [Member] | Replies : 6
hi..

in datagridview how to place a checkbox..


i was bind database values in that datagridview...
then i want to delete the rows if i checked a checkbox in that datagridview..

how to do this..

its a windows application ..

need suggestions in c#..

regards
gopal.s




Responses

Posted by: Sagarp on: 4/1/2010 [Member] Bronze

Up
0
Down
hiii friend


check following links

http://www.sourcecodester.com/visual-basic-net/checkbox-datagridview.html 


Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 4/1/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Day Guys

Sagarp the Question is

i want to delete the rows if i checked a checkbox in that datagridview

Not on mouse over. The thing is that the events to achieve this is different. The first you need to do is that loop through the grid and look for the checked and get their ID's and and delete them and that can be achieved like this
http://dotnet.itags.org/dotnet-tech/306908/

Thank you for posting at dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sagarp on: 4/1/2010 [Member] Bronze

Up
0
Down
Hi friend

sry for by mistake i have send u this plz
ref this links nd solve ur problem

http://www.dotnetspider.com/resources/5387-how-cam-we-delete-datagridview-rows.aspx 


Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Syedshakeer on: 4/1/2010 [Member] Starter

Up
0
Down
Hi,
check the following link
http://social.msdn.microsoft.com/Forums/en/winformsdatacontrols/thread/50e48ad6-ca39-4646-add1-25fe567a27b9

Syed Shakeer Hussain

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 7/14/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
hey Sivakumari stop what you are doing. i will remove all the messages you are posting here.

Thank you for posting at Dotnetfunda
[Administrator]

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bageshkumarbagi on: 6/18/2013 [Member] Starter | Points: 25

Up
0
Down
hi,

try with this.
http://www.dotnetfunda.com/codes/code4873-add-checkbox-in-datagridview-in-csharp-windows-application.aspx
http://www.dotnetspider.com/resources/43689-How-create-check-box-column-datagridview.aspx

Thanks,
Bagesh Kumar Singh

Thanks,
Bagesh Kumar Singh
Mark as answer if you have been satisfied

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response