Velocity Reviews - Computer Hardware Reviews

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

Thread Tools

Datagrid Problem

pargat singh
Posts: n/a
Hello .Net Users

I have two datagrid on page and one move button(button).
Both datagrid has same data like client_id,client_name.
I want to do the following

1. When i click on second datagrid i want that row to be highlighted.

( I added a template column and add select button and

Sub HighLightME(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles
If Session("test") = 1 Then
Session("oObj").Item.BackColor =
System.Drawing.Color.white End If

e.Item.BackColor = System.Drawing.Color.Green
LastColoredIndex = e
Session("oObj") = LastColoredIndex
Session("test") = "1"

End Sub

Where LastColoredIndex = Public LastColoredIndex As

it is working fine but the problem is when i select second row first
row remain green and after click second row also become green.So i
endup with both green row,but i want when i click on second row first
row should change back to original color.Please help.

2.Suppose No.1 is working.When i click on first datagrid selected row
should be highlighted (Same as No.1) and when i press Move button
selected row from first datagrid should move under the selected row of
second datagrid.

Can anyone please help me.
I am using
Please provide sample code.
Any help is much appriciate.

Thanks in advance.

P Gill
Reply With Quote

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 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