473,386 Members | 1,801 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,386 software developers and data experts.

how to pass more parameters into the datagrid with hyperlink

2
pls anyone tell me that how to pass more parameter into the datagrid with hyperlink column at client side because i required a value of the selected hyperlink cell for fetching another table and also want to bind the data with other datagrid which is selected by the client.

so i basically required the value which is selected by the client and then pass the value of that link to other table and bind the data with other grid.

pls answer me for that because i wasted so many hours behind it so its urgent if any one can help me
Aug 9 '07 #1
4 1957
pls anyone tell me that how to pass more parameter into the datagrid with hyperlink column at client side because i required a value of the selected hyperlink cell for fetching another table and also want to bind the data with other datagrid which is selected by the client.

so i basically required the value which is selected by the client and then pass the value of that link to other table and bind the data with other grid.

pls answer me for that because i wasted so many hours behind it so its urgent if any one can help me
Hi
Try this..
Add select template field in ur grid view..Whenever client select a row u need to populate another grid.
To do this write grid1_selectedIndexChanged event for first grid and than get the selected index by grid1.selectedindex.
To get the value of particular column by grid1.item(index).(0..N-1).Tostring()...or ur need.
I hope this will help you.


Regards
Gyanendar
Aug 9 '07 #2
hirnis
2
Hi
Try this..
Add select template field in ur grid view..Whenever client select a row u need to populate another grid.
To do this write grid1_selectedIndexChanged event for first grid and than get the selected index by grid1.selectedindex.
To get the value of particular column by grid1.item(index).(0..N-1).Tostring()...or ur need.
I hope this will help you.


Regards
Gyanendar
thanks for ur reply but i required the datagird code not for gridview so pls can u give me solution for that if it is possible pls sir
Aug 10 '07 #3
thanks for ur reply but i required the datagird code not for gridview so pls can u give me solution for that if it is possible pls sir
I think u r working on .net 1.X framework.There u have datadrid which is upgraded as gridview in .net 2.0.

This solution work for datagrid too.

Regards
Gyanendar
Aug 10 '07 #4
pls anyone tell me that how to pass more parameter into the datagrid with hyperlink column at client side because i required a value of the selected hyperlink cell for fetching another table and also want to bind the data with other datagrid which is selected by the client.

so i basically required the value which is selected by the client and then pass the value of that link to other table and bind the data with other grid.

pls answer me for that because i wasted so many hours behind it so its urgent if any one can help me

ya u can pass more than one parameter in dbgrid class..
at the last there is a code of pagination and in that there are different parameter in that u can us ?id = {$id}& operation = {$operation} like these u can pass the more than one parameter..
Aug 10 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: cksj | last post by:
I have a link on my web app that opens a pop-up window. In the pop-up window, the user can search for policy information. The result is displayed on a datagrid. The datagrid has 1 hyperlink column...
1
by: Machelle Chandler | last post by:
All, I'm trying to populate a datagrid with a data adapter that uses a stored procedure with a parameter. I get the below error when I run my code (as seen below). Any hints? If I delete...
0
by: Sam | last post by:
Hi, I have a class that receives a DataGrid control and populates it. However, I need to do an OnItemCreated event because if I'm missing data in a certain column, I display a HyperLink control...
5
by: sincethe2003 | last post by:
Hi, in the following example: ----------- <asp:HyperLinkColum HeaderText="Select an Item" DataNavigateUrlField="IntegerValue" DataNavigateUrlFormatString="detailspage.aspx?id={0}"...
1
by: Greg Reynolds | last post by:
Hi, I need to create datagrid hyperlink columns with multiple parameters in the URL. In my research on how to do this, it is recommended to create a template column which I have done. The code...
2
by: Fabrice | last post by:
Hello, First, thanks to felix for his answer. But :-( , I'm feeling newbie :! I' don't understand all the situation. The trouble : Always in the road whith my Datagrid and my ItemTemplate...
2
by: Mike Baugh | last post by:
I am using visual studio 2005 to develop a form using c# I have 3 datagrids on one form. I can set the row color based on a certain value in a column. However this color applies to all 3...
1
by: khalid sohail | last post by:
hi everybody i want to pass the window size parameter to <asp:hyperlink> attribute Navige URL Property. tell me how to pass the parameter to it.....actually i want to open the new window on the...
1
by: dhanlak | last post by:
I am doing a asp.net Project, in which i need to populate a datagrid using a stored procedure. The stored procedure returns different column names based on the user input, but the no of columns(it...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.