Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

How do I programmatically check a checkbox in a datagridview? The true value of the column "chk2" is set to "yes" and the false to "no"

 

datagridview1("chk2", row_number).Value = "yes"

 

doesn't work

Development & Research Department @ Elven Soft
Posted

I don't have my compiler on this computer, but I usually use something like this:

 

DatagridView.DataTable.Rows(row_Num).Column("chk").Value = "yes"

 

Like I said I haven't got a compiler, I may have the syntax wrong, but that's the general idea.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...