Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:624667
More Search Options
RSS Available
Matching Posts
How to change GridView Row color on mouse over
Hello, I am trying to create a Mouse Over for my GridView and have a problem hope any of you can shed some light to how to fix it Currently my Alternate GridView Row is using this CSS style with an image .mGrid .alt { background : #fcfcfc url( Images/grd_alt.png) repeat-x top ; } In my GridView I have some codes below, when my mouse move over the Alternate Row I would like to replace the image I defined in my css stylesheet with a color but it doesn't work Protected Sub GridView1_RowDataBound
Posted to
Data Presentation Controls
(Forum)
by
Truc-Mi
on 11/11/2009
Re: How to change GridView Row color on mouse over
Thanks for a quick reply, I inserted the Code into my CSS Style and make adjustments to my GridView as stated but same results. When I move my move over to the Alternate Row, it suppose to change the Background color to what I specified but it's not my alternate row image still show
Posted to
Data Presentation Controls
(Forum)
by
Truc-Mi
on 11/11/2009
Re: How to change GridView Row color on mouse over
Thank you all for reply, I ran out of time to correct this so for now my solution is NOT using the Alternate Row image, then all of the suggestion above works. Later when I have more time I will read all the links provided and see what I have done wrong with my settings.
Posted to
Data Presentation Controls
(Forum)
by
Truc-Mi
on 11/11/2009
Re: KeepInInsertMode in ObjectDatasource
Thanks, as you suggested I use the Inserted event in the detailsview and it works.
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
Truc-Mi
on 3/4/2009
Re: Change Gridview cell in edit mode
Thanks for your code, other user already gave me the answer see above posts. By the way, your method seems to use sqldatasource, I am using objectdatasource that's where I am having problem. But I will keep your code as well in the event if I use sqldatasource.
Posted to
Data Presentation Controls
(Forum)
by
Truc-Mi
on 2/20/2009
Re: Change Gridview cell in edit mode
You are a genious! Your code is right on, I've spent hours trying different approaches, events none work until you responded. Many thanks! Here is the code in VB. Dim UserLogonName As String = User.Identity.Name() If (GridView1.EditIndex <> -1) AndAlso (e.Row.RowType = DataControlRowType.DataRow) Then If e.Row.RowIndex = GridView1.EditIndex Then Dim userMod As TextBox = DirectCast (e.Row.FindControl( "UserModifiedTextBox" ), TextBox) userMod.Text = UserLogonName End If End If
Posted to
Data Presentation Controls
(Forum)
by
Truc-Mi
on 2/20/2009
Change Gridview cell in edit mode
Hello, I am trying to replace a cell value in a GridView (Edit Row) but unable to, I hope you can help me with thanks in advance. I have a GridView with data fields in them using ObjectDataSource, when user click on EDIT, I want to replace a Data field "UserModifiedTexBox" to a new value I specified, below is my code, my page ran without report any error but the field doesn't populate with the value I want. PLEASE HELP! Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object
Posted to
Data Presentation Controls
(Forum)
by
Truc-Mi
on 2/20/2009
KeepInInsertMode in ObjectDatasource
Hello everyone, I have an issue hope you can help. My DetailsView is binded to an ObjectDataSource, if the insert failed, I want to keep in the insertmode, I tried e.KeepInInsertMode = True but it didn't like it what's the equivalent? If I left this line out any error occurred, it will take me back to the View mode and any data I entered are lost. Thanks in advance for any feedback. Protected Sub odsData_Inserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
Truc-Mi
on 2/17/2009
Re: Get new inserted record using Dataset question
Thank you for your suggestion, I've seen some samples on how to use stored procedure for this but hoping to implement this feature wo the stored procedure. My other option is to use Sqldatasource. Thanks again.
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
Truc-Mi
on 2/17/2009
Get new inserted record using Dataset question
Hello everyone, I have a Dataset generated using the Wizard the Insert code is as shown, because I select the Advanced option so the SELECT .... SCOPE_IDENTITY() added automatically, how do I return the newly record in my DetailsView Record Inserted code? I tried something like this but it didn't like it, thanks in advance for any help, by the way my RecordID column is an Auto generated number (integer) Dim NewRecID As Integer = CInt(e.Command.Parameters("RecordID").Value) lblNewRecord
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
Truc-Mi
on 2/13/2009
Page 1 of 14 (134 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 1
Channel 9:
Francesco Logozzo - Static Checking with Code Contracts for .NET
Channel 9:
Channel 9 Live at PDC09: Doug McCuistion, NASA
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 3: Configuration
Channel 9:
Reading Debate with Bill Buxton
Channel 10:
Reading Debate with Bill Buxton
WindowsClient:
Build WPF Data Controls for Outlook Addins Easily with VS2010
Channel 9:
Channel 9 Live at PDC09: .Net Rocks Part 2
Channel 9:
Channel 9 Live at PDC09: .Net Rocks Part 1
Channel 9:
Channel 9 Live at PDC09: Wei Zhu (Facebook)
WindowsClient:
WPF Manipulation Basics
ASP.NET:
High CPU in .NET app using a static Generic.Dictionary
TechNet Edge:
Deploying Silverlight - Why and How
WindowsClient:
Windows Client Developer Roundup for 12/21/2009
IIS.NET:
SiteShell
Silverlight:
4 Calendars & Plans for 2010 / 5770
ASP.NET:
ASP.NET MVC 2 and Visual Studio 2010
ASP.NET:
Moving your ASP.NET Application to Windows Azure – Part II
Silverlight:
HVP – Core Scaffolding and Updated News
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online