can't bind Windows Forms Controls to a DataReader object.

  • Thread starter sushil n via .NET 247
  • Start date
S

sushil n via .NET 247

you can't bind Windows Forms Controls to a DataReader object.

However, you can bind it to a Web Form's Controls such as the DataGrid

can any one explain how is it possible.
 
J

Jim Hughes

Basically because the web datagrid is rendered once using a forward only
reader, but the windows datagrid needs the ability to navigate backwards
through the data to repaint the grid when requested. A datareader can't go
backwards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top