Datagrid binding problem

Dear all,

I am displaying certain data in my datagrid ,working fine, again when I am trying to highlight a particular row of a datagrid from a different class

it was giving me error like " index out of bound array" I delibrated a lot and then got a conclusion that the data was not orginally accessible ,

So I rebinded the data and now its working fine. Its printing the row no being sent from other class

datagrid1.setbinding(ds,"MyTable"); ------------- to bind the dataset again

but the data in datagrid not showing the highlighted row




Answer this question

Datagrid binding problem

  • PAINKILLER1009

    Anil,

    Make sure that you are not rebinding your DataGrid prior to highlited row is defined.

  • phDotNet

    Hello.

    Again I cleared my datagrid using dataset.tables.clear() method then I wrote the binding and filling syntax but still its not working

    help me out from this jeppardise

    thanks,

    Anil



  • Datagrid binding problem