C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




accesing gridview's cell value in selectindexchanging event


Posted Date: 09 Aug 2008      Total Responses: 1

Posted By: Cathrin       Member Level: Gold     Points: 1



HI,


Will anybody tell me how to access gridview's cell value in selectindexchanging event...I tried GridView1.SelectedRow.Cells(2).ToString...
But i get an error msb obj ref not set to an instance of an obj....





Responses

Author: Vidhya    09 Aug 2008Member Level: GoldRating:     Points: 5

hi,

Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged

'Do code here to set the values from the selected row

Dim popup As AjaxControlToolkit.ModalPopupExtender = ModalPopupExtender
If popup IsNot Nothing Then
If ReSetDefaults Then SetDefaults(Nothing)
popup.Show()
End If
End Sub


I hope it helps you!

Note:
Kindly rate this content if it helpe!




Post Reply
You must Sign In to post a response.
Next : Doubt in the update query.
Previous : Create Text file in Javascriopt in Asp.net
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use