PC Review


Reply
Thread Tools Rate Thread

delete row in gridview

 
 
Steve
Guest
Posts: n/a
 
      18th Jul 2007

I have a gridview and I want to delete a row that is highlighted, but I want
to show a confirmation box also 'you sure?',
but I only want this to show if a row in the gridview is highlighted. What
is the best way to do this other then disabling the delete button until a
row is highlighted?


 
Reply With Quote
 
 
 
 
David Wier
Guest
Posts: n/a
 
      18th Jul 2007
Check out this code sample from ASPNet101.com:
http://www.aspnet101.com/aspnet101/a...vConfirmDelete

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://iWritePro.com



"Steve" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>
> I have a gridview and I want to delete a row that is highlighted, but I
> want to show a confirmation box also 'you sure?',
> but I only want this to show if a row in the gridview is highlighted. What
> is the best way to do this other then disabling the delete button until a
> row is highlighted?
>
>



 
Reply With Quote
 
 
 
 
Steve
Guest
Posts: n/a
 
      18th Jul 2007
i already have the confirmation button. I only want to show it if a row is
selected to delete. This code has a delete button on every row. I don't have
that, I have a delete button and deletes the selected row.


"David Wier" <(E-Mail Removed)> wrote in message
news:ObE%(E-Mail Removed)...
> Check out this code sample from ASPNet101.com:
> http://www.aspnet101.com/aspnet101/a...vConfirmDelete
>
> --
> David Wier
> MVP/ASPInsider
> http://aspnet101.com
> http://iWritePro.com
>
>
>
> "Steve" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>>
>> I have a gridview and I want to delete a row that is highlighted, but I
>> want to show a confirmation box also 'you sure?',
>> but I only want this to show if a row in the gridview is highlighted.
>> What is the best way to do this other then disabling the delete button
>> until a row is highlighted?
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Gridview row databound event - can't get past the 1st row of gridview maurban@gmail.com Microsoft ASP .NET 5 13th Oct 2006 10:37 PM
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= Microsoft ASP .NET 1 9th May 2006 07:48 PM
GridView nested in DataList - refreshing corresponding DataList row after updating GridView row H5N1 Microsoft ASP .NET 0 27th Apr 2006 12:41 AM
GridView nested in DataList - refreshing corresponding DataList row after updating GridView row H5N1 Microsoft Dot NET Framework Forms 0 26th Apr 2006 07:46 PM
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below Annette Microsoft Excel Programming 2 21st Sep 2004 02:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:09 PM.