c# - string array to datarow array -


i assign string of array datarow array

my code follows

protected void btngenerate_click(object sender, eventargs e) {     datarow[] drow;      foreach (gridviewrow grrow in grdach.rows)     {         checkbox chkitem = (checkbox)grrow.findcontrol("checkrec");         if (chkitem.checked)         {             chkitm = true;             chkcnt++;             strbanktypeid += ((label)grrow.findcontrol("lblbanktype")).text.tostring();             strbnkarray = strbanktypeid.split(',');             foreach (string str in strbnkarray)             {                 //here have assign string of array datarow             }         }     } } 

can 1 me

you'll want set gridviewrow.dataitem

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridviewrow.dataitem.aspx


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -