How to get the datasource from a datagrid

P

Pkenty

Hi, im trying to get the datasource from a datagrid to in order to make
changes to the dataset before rebinding it back to the datagrid...

how can i get the dataset?
 
S

Scott M.

When you know that the grid's datasource is a datagrid, you can write:

Dim x as Dataset = Ctype(DataGrid.DataSource,DataSet)
 

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

Members online

Forum statistics

Threads
474,264
Messages
2,571,065
Members
48,770
Latest member
ElysaD

Latest Threads

Top