Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Multiple delete with Datagrid in .NET 1.1... help please

Reply
Thread Tools

Multiple delete with Datagrid in .NET 1.1... help please

 
 
=?Utf-8?B?Q2FsdmluIEtE?=
Guest
Posts: n/a
 
      06-26-2006
Hi everyone,
I'd like to enable users to select/mark multiple rows (records) in my
datagrid for deletion. I have provided a checkbox column with a checkbox in
the header for "Select All" option. The select actions are done on clientside
(javascript).
My datagrid allows for custom paging. I found out before that paging fails
whenever i click on the "..." after the numeric page numbers to go to the
"hidden' pages while I have the grid's EnableViewState=True property set. I
had to get around this, as suggested by someone on this forum is to keep the
grid's EnableViewState=True but disable the viewstate at the Row level (in
ItemDataBound event). That worked fine but now i face another brick wall, as
a result, is that because the grid's view state has been set to "off" at the
rows level, no data is retained at postback so when it comes to find out
which row has been selected/marked for deletion and obtain its corresponding
ID (value stored in a hidden column), it isn't there!

Has anyone came across this sort of scenario and possibly a solution?
Any suggestion is greatly appreciated as always.

Calvin
 
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
Multiple delete with Datagrid in .NET 1.1... help please =?Utf-8?B?Q2FsdmluIEtE?= ASP .Net 0 06-29-2006 01:35 AM
Delete key doesn't delete when datagrid is bound to a disconnected table Fred Zolar ASP .Net Datagrid Control 0 04-01-2004 07:47 AM
Delete Datagrid from Multiple Sources (VB) Motley Drew ASP .Net Datagrid Control 0 02-18-2004 12:21 AM
HELP! HELP! PLEASE, PLEASE, PLEASE tpg comcntr Computer Support 11 02-15-2004 06:22 PM
please help... ...me learn C++ please please please :) KK C++ 2 10-14-2003 02:08 PM



Advertisments