473,387 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Raising SelectedIndexChanged event in a gridview

-MT
Hello,

I have a gridview in ASP .Net 2.0 whose datasource is a dataview. I
want to raise the
SelectedIndexChanged event when I click anywhere in a Row of the GridView. I
don't want to use a separate "ButtonField" to raise a
SelectedIndexchangedEvent. Right now all I have in amy gridview row are
"DataFileds". Please let me know how to achieve the same.

Thanks!!
jay

Jun 5 '06 #1
2 2068
See if this helps..

http://www.netomatix.com/development...ctedevent.aspx

"-MT" <MT@discussions.microsoft.com> wrote in message
news:50**********************************@microsof t.com...
Hello,

I have a gridview in ASP .Net 2.0 whose datasource is a dataview. I
want to raise the
SelectedIndexChanged event when I click anywhere in a Row of the GridView.
I
don't want to use a separate "ButtonField" to raise a
SelectedIndexchangedEvent. Right now all I have in amy gridview row are
"DataFileds". Please let me know how to achieve the same.

Thanks!!
jay

Jun 6 '06 #2
Jay
Winista,

Thank you.

Thanks!!

"Winista" wrote:
See if this helps..

http://www.netomatix.com/development...ctedevent.aspx

"-MT" <MT@discussions.microsoft.com> wrote in message
news:50**********************************@microsof t.com...
Hello,

I have a gridview in ASP .Net 2.0 whose datasource is a dataview. I
want to raise the
SelectedIndexChanged event when I click anywhere in a Row of the GridView.
I
don't want to use a separate "ButtonField" to raise a
SelectedIndexchangedEvent. Right now all I have in amy gridview row are
"DataFileds". Please let me know how to achieve the same.

Thanks!!
jay


Jun 6 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stephen | last post by:
My primary GridView is firing an OnDataBound after Selecting a row (which triggers SelectedIndexChanged). This only happens in the following scenario: - User enters a textbox search value and...
1
by: AT | last post by:
I am having problem with beta 1 asp.net 2.0 I have 3 development stations xp /pro On 2 of them it is working just fine on 3 rd -this event not fired!!!! Problem description: I placed gridview...
6
by: msnews.microsoft.com | last post by:
Hi All, I am creating a control with ASP "ListBox" control. Also I have added necessary code to handle the ListBox.SelectedItemChanged Event. But surprisingly the control is not comng to...
2
by: Netmonster | last post by:
I am having trouble programmatically setting the SelectedIndexChanged of a GridView. Code as follows. Panel Panel1 = new Panel(); GridView g = new GridView(); ObjectDataSource o = new...
0
by: Jay | last post by:
Hello, I have a gridview whose datasource is a dataview. I want to raise the SelectedIndexChanged event when I click anywhere in a Row of the GridView. I don't want to use a separate...
1
by: Nam | last post by:
I have a DropDownList control in a TemplateField inside my GridView How do I access this control’s SelectedIndexChanged event in codeBehind page? I don’t see the ID “DropDownList1” of...
4
by: lakepeir | last post by:
Hello, I have combobox with a selectedindexchanged method that seems to be called when starting the application, launching the form with the combobox and making a change in the drop down box of...
4
by: aamir | last post by:
Hello, I guess the subject line says it all. I have put Trace.Warn() in the SelectedIndexChanged event handler, but it does not get listed when the trace is on for that page. I have AutoPostback =...
1
by: Enij | last post by:
Hi All, Long story short, I have created a ListView type control, using UserControls for the parent control and the ListViewItems. Most the of the control is written and works fine, right up to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.