checkboxcolumn in datagridview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sajeeendranath
    New Member
    • May 2007
    • 1

    checkboxcolumn in datagridview

    .am using two checkboxcolumn in a datagridview and my problem is....i want to allow only one checkboxcolumn to be checked at a time(eg:- if we check first checkboxcolumn then the other one should remain unchecked and viceversa)
    thankz in advance
  • leela mn
    New Member
    • May 2007
    • 43

    #2
    u can do this in checkbox onClick javascript event....

    u can loop through the datagrid items
    and uncheck all the elements

    Comment

    • gomzi
      Contributor
      • Mar 2007
      • 304

      #3
      Originally posted by sajeeendranath
      .am using two checkboxcolumn in a datagridview and my problem is....i want to allow only one checkboxcolumn to be checked at a time(eg:- if we check first checkboxcolumn then the other one should remain unchecked and viceversa)
      thankz in advance
      You can also try using a checkboxlist with its autopostback property set to true and changing the checked state appropriately on postback.

      Comment

      Working...