Solved

Infragistics

Posted on 2004-04-26
15
5,295 Views
Last Modified: 2012-06-27
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
Comment
Question by:Moizsaif123
  • 11
  • 4
15 Comments
 
LVL 15

Expert Comment

by:liebrand
ID: 10929743
try this


Me.UltraWebGrid1.Columns(0).Type = Infragistics.WebUI.UltraWebGrid.ColumnType.HyperLink
0
 
LVL 4

Author Comment

by:Moizsaif123
ID: 10930073
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
 
LVL 4

Author Comment

by:Moizsaif123
ID: 10930122
Is there an Underline property to the

WebGrid1.Rows(nCtr).Cells(2).Value = "Link"
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
LVL 15

Accepted Solution

by:
liebrand earned 400 total points
ID: 10930177
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
 
LVL 4

Author Comment

by:Moizsaif123
ID: 10930253
great it worked, thanks a lot, do you know any sites where I can learn about the ultrawebgrid in from infragistics....


Moiz
0
 
LVL 15

Expert Comment

by:liebrand
ID: 10930265
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
 
LVL 4

Author Comment

by:Moizsaif123
ID: 10931491
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
 
LVL 4

Author Comment

by:Moizsaif123
ID: 10931499
i can add the question as a seperate question if you want....
0
 
LVL 15

Expert Comment

by:liebrand
ID: 10932632
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
 
LVL 4

Author Comment

by:Moizsaif123
ID: 10933309
I got it, thanks again...



0
 
LVL 4

Author Comment

by:Moizsaif123
ID: 10940223
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
 
LVL 4

Author Comment

by:Moizsaif123
ID: 10977941
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
 
LVL 4

Author Comment

by:Moizsaif123
ID: 11143452
0
 
LVL 4

Author Comment

by:Moizsaif123
ID: 11380165
0
 
LVL 4

Author Comment

by:Moizsaif123
ID: 12030706
Hi, I have one question regarding the button added on a infragistics column, same as code above you mentioned.



Moiz
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 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