[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 316
  • Last Modified:

Vb.Net datagrid

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
malanois
Asked:
malanois
1 Solution
 
DotNetLover_BaanCommented:
Where do you want the arrows ? Do you mean a button with "<" or ">" on it ? Please explain
-Baan
0
 
malanoisAuthor Commented:
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
 
malanoisAuthor Commented:
To answer your ? correctly yes the character">"  "<"
0
Independent Software Vendors: 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!

 
ahmadfuwadCommented:
write your code in double click event of datagrid
0
 
123654789987Commented:
0
 
bramsquadCommented:
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
 
peichenCommented:
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now