c# - Looping in RadGrid -


i'm retrieving list of values using datatable , bind on radgrid combo box controls in windows forms.

questions:

  1. how i'm going retrieve each combo box values in datatable?

here's codes:

foreach (datagridviewrow row in radgrid.rows) //error here -- 'telerik.wincontrols.ui.gridviewrowinfo' 'system.windows.forms.datagridviewrow'             {                 foreach (datagridviewcell cell in row.cells)                 {                  }             } 

i don't know telerik grid, error show appears rows aren't datagridviewrow's, , instead gridviewrowinfo.

rewrite code , see if helps:

foreach (telerik.wincontrols.ui.gridviewrowinfo row in radgrid.rows) {     foreach (telerik.wincontrols.ui.gridviewcellinfo cell in row.cells)             {      } } 

notice use own data types rows , cells. error getting telling you can't cast winforms grid types telerik grid types. see this documentation more info.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -