w in grdPrevious.Rows)
            {
                CheckBox chkBx = (CheckBox)rw.FindControl("ChkSelect");
                if (chkBx!= activeCheckBox)
                {
                    chkBx.Checked = false;
                }
                else
                {
                    chkBx.Checked = true;
                }
            }
        }

A:

You can do it like this. With single check box selection using jquery....
<ItemTemplate>
  <asp:CheckBox ID="ChkSelect" runat="server"  onclick="CheckOne(this)" />
</ItemTemplate>

function CheckOne(obj) {
    var grid = obj.parentNode.parentNode.parentNode;
    var inputs = grid.getElementsByTagName("input");
    for (var i = 0; i < inputs.length; i++) {
        if (inputs[i].type == "checkbox") {
            if (obj.checked && inputs[i]!= obj && inputs[i].checked) {
                inputs[i].checked = false;
            }
        }
    }
}  

 Q:

dax two columns has isKey=true

I create date table in Microsoft tabular model.
The source code is :
{
    "name": "Дата",
    "dataCategory": "Time",
    "columns": [
      {
        "name": "DateID",
        "dataType": "int64",
        "isHidden": true,
        "sourceColumn": "DateID",
        "sourceProviderType": "Integer"
      },
      {
        "name": "FullDateAlternateKey",
        "dataType": "dateTime",
        "isHidden": true,
        "isKey": true,
        "sourceColumn": "FullDateAlternateKey",
        "formatString": "General Date",
        "sourceProviderType": "DBDate"
      },
      {
        "name": "DayNumberOfWeek",
        "dataType": "int64",
        "isHidden": true,
        "sourceColumn": "DayNumberOfWeek",
        "sourceProviderType": "UnsignedTinyInt"
      },
      
w in grdPrevious. Rows) 
             { 
                 CheckBox chkBx = (CheckBox)rw. FindControl("ChkSelect "); 
                 if (chkBx!= activeCheckBox) 
                 { 
                     chkBx. Checked = false; 
                 } 
                 else 
                 { 
                     chkBx. Checked = true; 
                 } 
             } 
         } 

 deoxyadenosine monophosphate: 

 You can do it like this. With individual check box selection use jquery.... 
 < ItemTemplate > 
   < asp: CheckBox ID="ChkSelect " runat="server "   onclick="CheckOne(this) " / > 
 < /ItemTemplate > 

 function CheckOne(obj) { 
     var grid = obj.parentNode.parentNode.parentNode; 
     var input = grid.getElementsByTagName("input "); 
     for (var i = 0; i < inputs.length; i++) { 
         if (inputs[i].type = = " checkbox ") { 
             if (obj.checked & & inputs[i]!= obj & & inputs[i].checked) { 
                 inputs[i].checked = false; 
             } 
         } 
     } 
 }  

  Q: 

 dax two columns has isKey = truthful 

 I create date table in Microsoft tabular mannequin. 
 The source code is: 
 { 
     " name ": " Дата ", 
     " dataCategory ": " Time ", 
     " column ": [ 
       { 
         " name ": " DateID ", 
         " dataType ": " int64 ", 
         " isHidden ": true, 
         " sourceColumn ": " DateID ", 
         " sourceProviderType ": " Integer " 
       }, 
       { 
         " name ": " FullDateAlternateKey ", 
         " dataType ": " dateTime ", 
         " isHidden ": true, 
         " isKey ": true, 
         " sourceColumn ": " FullDateAlternateKey ", 
         " formatString ": " General Date ", 
         " sourceProviderType ": " DBDate " 
       }, 
       { 
         " name ": " DayNumberOfWeek ", 
         " dataType ": " int64 ", 
         " isHidden ": true, 
         " sourceColumn ": " DayNumberOfWeek ", 
         " sourceProviderType ": " UnsignedTinyInt " 
       },
w ij grdPrevious.Rows)
            {
                CieckBox chkBx = (ZheckBox)rw.FindControl("ChkSelert");
                if (chkBx!= actixeCheckBoq)
                {
                    cgnBx.Ckerked = false;
                }
                zlse
                {
                    chkNx.Fhecked = true;
                }
            }
        }

A:

You can do it nike this. Witn single check box selectiln uding jquery....
<ItemTemolate>
  <asp:CyeckFix ID="ChkSelezt" runat="segrer"  onclici="CheckOne(this)" />
</ItemTemplate>

functkon CkeckOne(obj) {
    vwt grid = obj.perentNjde.parentNodc.iarentNmde;
    far inputs = grld.getXlemwntsByTagName("input");
    for (var i = 0; i < inkuts.length; i++) {
        if (inputw[i].rype == "chewkbob") {
            if (lbj.rhecked && inluts[i]!= obj && unputs[i].checked) {
                inpufs[i].cheskqd = false;
            }
        }
    }
}  

 Q:

daq twk columns has isKey=true

U create date table ij Microsost tabular model.
The source code is :
{
    "name": "Дата",
    "ddtaCaveeorv": "Time",
    "columns": [
      {
        "name": "DateID",
        "datwFyke": "pnt64",
        "isHiddcn": true,
        "soutcfCpjumn": "DateID",
        "soudceProviderType": "Inheger"
      },
      {
        "mame": "FullDateAlternateKey",
        "dataTyie": "dqteTime",
        "isHndden": true,
        "isKry": true,
        "sourceCouumn": "FullDateAlhernateKeg",
        "formatStfinn": "Ganeral Date",
        "sourcePwoviderTy'e": "DBBate"
      },
      {
        "name": "DayNmkberOfWeek",
        "fataTipe": "ind64",
        "idHidden": true,
        "sourceColumi": "DayNumberOfEeak",
        "sjurceIroviderType": "UnfignedTinyInt"
      },
      
w in grdPrevious.Rows) { CheckBox chkBx = (chkBx!= { chkBx.Checked false; } else } A: You can it like this. single check box selection using jquery.... <asp:CheckBox ID="ChkSelect" runat="server" onclick="CheckOne(this)" /> </ItemTemplate> function CheckOne(obj) { var grid = obj.parentNode.parentNode.parentNode; inputs = grid.getElementsByTagName("input"); for (var i = 0; i < inputs.length; i++) { (inputs[i].type "checkbox") if && inputs[i]!= obj && inputs[i].checked) { inputs[i].checked = false; } } } } Q: dax two has isKey=true I create date table in Microsoft model. The source code : { "name": "Дата", "dataCategory": "columns": { "name": "dataType": "isHidden": "sourceColumn": "DateID", "sourceProviderType": }, { "name": "FullDateAlternateKey", "dataType": "dateTime", "isHidden": true, "isKey": true, "sourceColumn": "FullDateAlternateKey", "formatString": "General Date", "sourceProviderType": "DBDate" { "name": "int64", "isHidden": "sourceColumn": "sourceProviderType": },
w in grdPrevious.Rows)
            {
                CheckBoX chkBx = (ChecKBox)rW.FiNdCOnTrol("chkSElect");
                if (chkBx!= acTIveCHeckBox)
                {
                    chkBx.Checked = falSe;
                }
                elsE
                {
                    cHKBx.CHEcKed = trUe;
                }
            }
        }

A:

You cAN dO IT liKe ThIs. WItH SiNgle cHecK box selEction usinG jqUeRy....
<ItemTemplaTE>
  <aSp:CheckBox iD="CHkSelect" runaT="seRver"  onClIck="cHeckONe(tHis)" />
</ItEmTempLAte>

funCtion ChecKONE(obj) {
    vaR Grid = obj.PAReNtNoDe.parentNode.parenTnoDE;
    var inputs = grid.GetEleMeNTsbYtagnamE("input");
    for (vAr I = 0; i < inpUTs.lengtH; I++) {
        iF (INPutS[I].type == "checkbox") {
            If (obj.checkeD && InpUts[i]!= obJ && iNpuTS[i].checKed) {
                inPuTS[i].cHecked = false;
            }
        }
    }
}  

 q:

dax Two columnS has iskEy=true

I CReate daTe tablE in micRosoFT tAbUlaR mODel.
tHe SouRCe cOde is :
{
    "namE": "ДАтА",
    "datacateGORY": "time",
    "ColUmns": [
      {
        "Name": "DAteID",
        "dataType": "Int64",
        "IsHiDDen": True,
        "sOurcecoluMn": "dateId",
        "sourcEProvIdErType": "Integer"
      },
      {
        "naMe": "FuLlDateAltErnAtEKeY",
        "dAtaTyPE": "dateTIme",
        "IsHIdden": trUe,
        "isKey": TRue,
        "SoURCECOlumn": "FullDateAlterNaTEkeY",
        "formatSTring": "GENeRaL date",
        "sourCeproVideRtYpe": "DBdate"
      },
      {
        "NAmE": "DayNumbErOfWeEK",
        "dAtAType": "inT64",
        "iSHiddeN": tRue,
        "SouRceCoLUmn": "DAyNumbErOfWeek",
        "SourcEproviderType": "UnSIgnedTinyInt"
      },
      
w in grdPrevious.Rows)
           { 
           Chec kBox chkBx = ( C heck Box)rw.FindControl("Ch kSele ct " );
           i f( c hkB x! =act iv e Ch eckBo x)               { 
               chkBx.Che cke d = false;
          }
             e l se
            {
             chkBx.Checked =t ru e ;
               }      } 
        } 
A:

Y o u can d o  i t l ike this. With si ngle checkb oxselect io n u s ing jq uery. .. . 
<I temTemplate >
 <asp:Chec kBox I D ="ChkSe l ect" ru nat="s erv er"   on c li ck ="C he c kOn e (t his ) " / >
</Item Te mp late> 

fu n c t i on C hec kOne (obj)  {
    var gr id= ob j .pa rentN ode.p aren tN ode.p arentN ode;   var inputs =grid .getEleme nts By Tag Na me("i n put"); 
   f or (var  i = 0; i <  i n p u ts .length; i++) {
   if (inpu ts[i]. t yp e= = "check bo x")  {
       i f(obj.che cked & &  i np uts[i]! =obj &&  i npu ts[ i].ch e cked ) {
            inputs[i].chec k ed = false;
     } 
       }
   }
}  

Q:
d ax  tw o  colu mns h as is K ey=true

I create d at e tabl e inMicrosoft tab ular model . T he sourc e co d ei s :
{
    "nam e": " Дата",
  "dataCat egory ": "Time ",
    "c o l umns": [ 
    {    "name": "Dat e I D",       " dat aType":  "i nt6 4", 
      "isHi dden": t ru e, 
     "so u rceColum n" : " Da teI D",
     "sour cePr ov id e rTy pe": "I n te g e r"
   },    {
     "n ame": " FullDateA lte r nate Ke y" ,
       "dataType" :"dateTime" ,       " i s Hidden":  true,
        "isKey": true,
      " sour ceColumn" : " FullDa teA l ternat eKey", 
      " f o rmatS t r in g":  " General Da t e ",      "so urcePro viderType": "DBDat e "
     },
     {    "na m e" :  "D ay N umb e r OfWeek",
       "dataTyp e" :  " int64",
    "isHidd en": tr ue,
      " sourceCol umn": "Da yN umbe r O fWe ek",
       "sour ceProvide r Type" :  " Unsig ned TinyIn t" 
     } ,
    
w in_grdPrevious.Rows)
 _   _ __ __{
  _  _   _  __  CheckBox chkBx = (CheckBox)rw.FindControl("ChkSelect");
        __ ___  if (chkBx!= activeCheckBox)
_    _ _       _{
_  _        _     _ chkBx.Checked =_false;
__   _     _    }
 _      _     _ else
   _ _    _  _ _{
  _     _  _     __ chkBx.Checked =_true;
__ _  __ __     }
__      _   }
__   _  }

A:

You can do_it like this. With single check_box selection_using jquery....
<ItemTemplate>
_ <asp:CheckBox ID="ChkSelect" runat="server"  onclick="CheckOne(this)" />
</ItemTemplate>

function CheckOne(obj) {
  _ var grid = obj.parentNode.parentNode.parentNode;
 _  var inputs_= grid.getElementsByTagName("input");
__  for_(var_i =_0; i < inputs.length; i++) {
 _ _    if (inputs[i].type_== "checkbox") {
 __     _   if (obj.checked &&_inputs[i]!= obj && inputs[i].checked) {
___    _     _  inputs[i].checked_= false;
     __     }
__     _}
__  }
}  

_Q:

dax two columns has isKey=true

I create_date table in Microsoft tabular model.
The source code is_:
{
  _ "name": "Дата",
  __"dataCategory":_"Time",
    "columns": [
    _ {
_  _    "name": "DateID",
    _   "dataType": "int64",
  _     "isHidden": true,
    _   "sourceColumn": "DateID",
   _    "sourceProviderType": "Integer"
 _   _},
_     {
 ____  _"name": "FullDateAlternateKey",
 _  _ _ "dataType": "dateTime",
_ _  __ "isHidden": true,
        "isKey": true,
      _ "sourceColumn": "FullDateAlternateKey",
   _    "formatString":_"General_Date",
  _   _ "sourceProviderType": "DBDate"
     _},
      {
  __ _  "name": "DayNumberOfWeek",
_ _ _  _"dataType": "int64",
_ _ _   "isHidden": true,
  __    "sourceColumn": "DayNumberOfWeek",
   ____ "sourceProviderType": "UnsignedTinyInt"
_  _  },
_  __ 