Improve company productivity with a Business Account.Sign Up

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

Infragistics

I am using Infragistics and I am programmatically populating my data in the UltaWebGrid. I need to create a linkbutton Column and have to set the DataTextfield of the button on each row item in the Column. Firstly my problem is creating a linkbutton Column using Ultrawebgrid. How do I do that?


Moiz
0
Moizsaif123
Asked:
Moizsaif123
  • 11
  • 4
1 Solution
 
liebrandCommented:
try this


Me.UltraWebGrid1.Columns(0).Type = Infragistics.WebUI.UltraWebGrid.ColumnType.HyperLink
0
 
Moizsaif123Author Commented:
I tried this,
 Me.WebGrid1.Columns(2).Type = Infragistics.WebUI.UltraWebGrid.ColumnType.Button

and this way a button is created in the column. I just realized that the cell has a click property of its own. so what i want to know is how to display the text of the cell as a link, not a hyperlink cause hyperlink redirects the page to another page. Hope I am not too confusing....

0
 
Moizsaif123Author Commented:
Is there an Underline property to the

WebGrid1.Rows(nCtr).Cells(2).Value = "Link"
0
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.

 
liebrandCommented:
try this....


        Me.UltraWebGrid1.Columns(2).Type = Infragistics.WebUI.UltraWebGrid.ColumnType.Button
        Me.UltraWebGrid1.Columns(2).CellButtonDisplay = Infragistics.WebUI.UltraWebGrid.CellButtonDisplay.Always
        With Me.UltraWebGrid1.Columns(2).CellButtonStyle
            .BackColor = Color.White
            .BorderStyle = BorderStyle.None
            .Font.Underline = True
        End With
0
 
Moizsaif123Author Commented:
great it worked, thanks a lot, do you know any sites where I can learn about the ultrawebgrid in from infragistics....


Moiz
0
 
liebrandCommented:
infragistics.com (and their support) is the source i use... Unfortunately there is no Tips and Tricks sites for infragistics products that I am aware of
0
 
Moizsaif123Author Commented:
hey, is there a way i can autoformat the ultrawebgrid like change the way it looks. Are there ready made templates that i could select for changing the look of the grid...


0
 
Moizsaif123Author Commented:
i can add the question as a seperate question if you want....
0
 
liebrandCommented:
right-click on the grid in design mode and click on Load Layout... you will get a list of all the different layouts available.

You of course can create your own via code on the initialize_layout event.

0
 
Moizsaif123Author Commented:
I got it, thanks again...



0
 
Moizsaif123Author Commented:
I am having an issue populating the webcombo using infragistics component.

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20970843.html



Moiz
0
 
Moizsaif123Author Commented:
Again I have an issue with the webcombo control in infragistics, hope you could help me out...


http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20975995.html



Moiz
0
 
Moizsaif123Author Commented:
0
 
Moizsaif123Author Commented:
0
 
Moizsaif123Author Commented:
Hi, I have one question regarding the button added on a infragistics column, same as code above you mentioned.



Moiz
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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