Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How to get the datasource from a datagrid

Reply
Thread Tools

How to get the datasource from a datagrid

 
 
Pkenty
Guest
Posts: n/a
 
      09-18-2004
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?
 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      09-18-2004
When you know that the grid's datasource is a datagrid, you can write:

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




"Pkenty" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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?



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
get datagrid.datasource gives error vips ASP .Net 7 05-11-2006 04:52 PM
DataGrid ItemStyle is a textbox and doesn't update the datagrid datasource matthew schouppe ASP .Net Datagrid Control 3 04-30-2004 03:02 PM
DataGrid ItemStyle is a textbox and doesn't update the datagrid datasource matthew schouppe ASP .Net 3 04-30-2004 03:02 PM
where does the DataGrid.DataSource property get set? Dave ASP .Net Web Controls 0 06-27-2003 06:43 PM



Advertisments