Avatar of aspnerd_55
aspnerd_55
 asked on

When records from loaded gridview1 are checked and moved to gridview2, I need the record to delete in the grdiview1 each time.

Hi,

Please find attached aspx web page and code behind which loads grdiview1 from a datatable.  When each record is checked and selected in gridview1 and the button is selected to move the record to grdiview2, I need for the checked record in Gridview1 to delete and not show any longer.

How can this be done with vb coding inside the code behind file.  I have attached the web form aspx page and the web form code behind page using vb.

This application is using the Northwind database.

 My actual application using this little application as a guide will load a datatable which will fill a grdiview from a stored procedure.  When I select the record in gridview1, I need the record to move to gridview2 ,but delete out each time which indicates something has happened with this record.
Moving-aspx.docx
Moving-aspx-vb.docx
MovingwebConfigurationFile.docx
ASP.NETVisual Basic.NETWCF

Avatar of undefined
Last Comment
Nasir Razzaq

8/22/2022 - Mon
SOLUTION
Nasir Razzaq

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
aspnerd_55

ASKER
Code Cruiser,

I am getting a blue squiggly line on dvRow saying "dvrow" has not been declared.  Does the dvrow need declaring with a Dim statement somewhere?

aspnerd_55
Nasir Razzaq

Sorry that would be gvRow.
aspnerd_55

ASKER
CodeCruiser,

I used the "gvRow" but I am getting an error message that there can't be a delete with an SQL DataSource.  You have to indicate somehow in a command for the gridview.  

I am moving spaces to each like this:

gvRow.Cells(1).Text = ""
                gvRow.Cells(2).Text = ""
                gvRow.Cells(3).Text = ""
                gvRow.Cells(4).Text = ""
                gvRow.Cells(5).Text = ""
                gvRow.Cells(6).Text = ""
                gvRow.Cells(7).Text = ""
                checkbox.Checked = False

I need to get rid of the check box even showing though if I can.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
SOLUTION
dejaanbu

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.