How to get active row??

J

JLuv

I have a TemplateColumn in my DataGrid that consists of links. When the
links are clicked a javascript calendar is opened that returns a
selected date to a HiddenField. What I'm trying to do is take the row
in which the calendar was chosen and change the date inside of the
datagrid. (if that makes sense)
I know how to use "this.myGrid.Items[row].Cells[column]" to access
datagrid info, but i don't know how i would be able to tell my web app
which row was clicked.
I'm using C# ASP.NET, btw.
Any help? If this isn't enough info, plz let me know.
 
J

JLuv

Ok, maybe a better way to put this...I want to know which row the link
was clicked on.
Then from there, I would know the row/column combination to use so that
I can change the correct date.
 
J

JLuv

ok, i found a solution. i ended up using an EditCommandColumn that i
found in the following article.
http://samples.gotdotnet.com/quickstart/aspplus/doc/webdataaccess.aspx
Ok, maybe a better way to put this...I want to know which row the link
was clicked on.
Then from there, I would know the row/column combination to use so that
I can change the correct date.
I have a TemplateColumn in my DataGrid that consists of links. When the
links are clicked a javascript calendar is opened that returns a
selected date to a HiddenField. What I'm trying to do is take the row
in which the calendar was chosen and change the date inside of the
datagrid. (if that makes sense)
I know how to use "this.myGrid.Items[row].Cells[column]" to access
datagrid info, but i don't know how i would be able to tell my web app
which row was clicked.
I'm using C# ASP.NET, btw.
Any help? If this isn't enough info, plz let me know.
 
V

venkat.oar

JLuv,

Try using Datagrid1_itemCreated

--Venkat
JLuv said:
ok, i found a solution. i ended up using an EditCommandColumn that i
found in the following article.
http://samples.gotdotnet.com/quickstart/aspplus/doc/webdataaccess.aspx
Ok, maybe a better way to put this...I want to know which row the link
was clicked on.
Then from there, I would know the row/column combination to use so that
I can change the correct date.
I have a TemplateColumn in my DataGrid that consists of links. When the
links are clicked a javascript calendar is opened that returns a
selected date to a HiddenField. What I'm trying to do is take the row
in which the calendar was chosen and change the date inside of the
datagrid. (if that makes sense)
I know how to use "this.myGrid.Items[row].Cells[column]" to access
datagrid info, but i don't know how i would be able to tell my web app
which row was clicked.
I'm using C# ASP.NET, btw.
Any help? If this isn't enough info, plz let me know.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top