Solved

Vb.Net datagrid

Posted on 2004-09-18
7
310 Views
Last Modified: 2010-05-19
I am filling a datagrid.

some of the data I am returning is y, n

When i fill the datagrid, i need to put a < or >.

The user can click on the < or >.  It will then open another page.

I need to know how to get the arrows < or > in the datagrid.
I also need to know how to create a link on this.

i know how to create an Index of the row,column clicked.
0
Comment
Question by:malanois
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 18

Expert Comment

by:DotNetLover_Baan
ID: 12093338
Where do you want the arrows ? Do you mean a button with "<" or ">" on it ? Please explain
-Baan
0
 

Author Comment

by:malanois
ID: 12093457
No not a button.

Just the character>

What I am doing is:
retrieve a query
on that query I am verifing if pn in table 1 is in table 2
if it is that means that pn has parent parts.
if it does then I want a < to show in column (parent)
I will do the same for child parts with query for table 1 to table 3
If there is a match then i want a > char in (child column)

If a arrow shows , The user can click on the < or > that will show another form of the parent or child parts.

I just cannot figure out the < > showing up in the datagrid.


Thanks,

MJ
0
 

Author Comment

by:malanois
ID: 12093726
To answer your ? correctly yes the character">"  "<"
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Expert Comment

by:ahmadfuwad
ID: 12099981
write your code in double click event of datagrid
0
 
LVL 10

Expert Comment

by:123654789987
ID: 12100172
0
 
LVL 8

Accepted Solution

by:
bramsquad earned 500 total points
ID: 12104865
heres how you can get the value of cell and do an event from there

if DataGrid1.Item(DataGrid1.CurrentCell.RowNumber, DataGrid1.CurrentCell.ColumnNumber) = ">" then
    'open new
Else
    'return to previous
End if

~b
0
 

Expert Comment

by:peichen
ID: 12114812
This should work, you might have to change a bit to fit into your program, but this should work:

****************************************************************************************************

<asp:datagrid id="mygrid" Runat="server" CellSpacing="0" BorderWidth="1" Visible="True">
      <Columns>
            <asp:HyperLinkColumn NavigateUrl="Parent.aspx" Text="<" HeaderText="Parent Page"></asp:HyperLinkColumn>
            <asp:HyperLinkColumn NavigateUrl="Child.aspx" Text=">" HeaderText="Child Page"></asp:HyperLinkColumn>
      </Columns>
</asp:datagrid>

****************************************************************************************************
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question