Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 03-09-2006, 11:26 AM   #1 (permalink)
rikb53
Registered User
 
Join Date: Jan 2006
Posts: 29
rikb53 is on a distinguished road
Highlight a DataGrid Row and Stay there -

i've been asked to create two dataGrids. one has an email list - and the other accepts whatever is selected in that email list. the grids have LastName,FirstName,Dept & email address (4-columns)
and each column is sortable.
Each datagrid Uses An OnItem Command to capture the e.item.cell(0).text etc info. when the row is clicked and it works wonderful.
what im trying to do is highlight the row Clicked, then When the user Selects a button, it takes the row contents and adds it to another grid.
the problem is - that highlighted row even goes away as soon as the OnItem Command is done because of postback, im sure.
Ultimately i'd like the user to be able to select multiple rows, then after a button click, it would sort thru the IsSelected property of the grid and do the updates to the other.
even taking that command out isnt helping.

can anyone give me a good solution as to how to do this. i know this behavior sounds very close to how a ListBox behaves, but i'm at a loss to be able to build a multiColumn ListBox that has 4 separate colums where each are sortable by headers. to me this requirement said DATAGRID to me.
any help or direction is appreciated.
thanks
rik
rikb53 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 10:45 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting