Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > DataGrid Problem

Reply
Thread Tools

DataGrid Problem

 
 
Stephen Noronha
Guest
Posts: n/a
 
      01-28-2004
Hi,

I am new to webservice. I have created a .asmx webservice and have a
SqlConnection and used a SqlDataAdapter to retrieve data from the database.
I have 2 web methods to select and Update. I have a web client .aspx page in
which I have a datagrid control to display data based on selection from a
dropdownlist. I have used datagrid Propery Builder to enable the Edit,
Update, Cancel button.

I have used the following code to bind data from the dataset.
dim dsNew as new dataset()
dsNew.merge(ds.tables(0).select("au_id = '" & value from dropdownlist &
"'"))
datagrid1.datasource = dsNew
datagrid1.databind()

problems:
1. the datagrid shows "Edit" button along the left column. when I click on
it, it shows the grid again but with 2 additional columns "HasRowErrors" and
"HasColumnErrors"
2. I have no idea even if (problem 1) is solved, How will I capture the
changes made to the "dsNew" dataset merge with "ds" dataset so that I can
update changes to the database.

I have also tried this with DataView but problem 2 still arises.


Please Do help,
Stephen.


 
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
problem in nesting datagrid in to a nested datagrid sajvargs ASP .Net 0 02-20-2005 12:17 AM
problema ultima pagina datagrid asp.net/problem last page datagrid roberto ASP .Net Datagrid Control 1 02-17-2005 07:50 AM
DataGrid edited values problem and autogenerated columns in DataGrid problem John Walsch ASP .Net Web Controls 0 07-09-2004 03:03 PM
Call Datagrid Command column outside datagrid Dave ASP .Net 0 11-20-2003 11:11 AM
To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible? Andreas Klemt ASP .Net Datagrid Control 0 10-08-2003 01:19 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57