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

Ultrawebgrid

I am trying to create a link to dynamically open a website that will
bring some of the information from the ultrawebgrid over to
another .aspx page. I am having problems in 1. trying to access the
invidual row in the datagrid as a whole and 2. getting the values in
the cells.

Any suggestions? The code is below.

My javascript:

<script type="text/javascript">

function CUDocList(fndocid)

{

var features = "";
var name = "CUDocList_" + fndocid;
var win = window.open('<%=ResolveUrl("~/ContractUnderwriting/
CUDocList.aspx")%>' + '?a=' + fndocid, name, features);
win.focus();

}

</script>

In the code behind:
Private Sub GetDefaultView(ByRef fromDate As Date, ByRef toDate As
Date)

Dim contractUnderwriting As IContractUnderwriting =
DirectCast(RemotingHelper.GetObject(GetType(IContr actUnderwriting)),
IContractUnderwriting)
Dim gridRows As DataSet =
contractUnderwriting.GetAllStatuses(Profile.OrgId)
Dim expr As String = String.Format("'<a>img src=""{0}""
alt=""Folder"" width=""16"" height=""16"" border=""0""/></a>'",
ResolveUrl("~/images/btn_folder.gif"))
Dim viewColumn As New DataColumn("view", GetType(String),
expr)

If gridRows.Tables(0).Rows().Count = 0 Then
displayGrid.Visible = False
lblErrorMsg.Visible = True
Else
displayGrid.Visible = True
lblErrorMsg.Visible = False
If ((fromDate = Nothing) And (toDate = Nothing)) Then
gridRows.Tables(0).Columns.Add(viewColumn)
displayGrid.DataSource = gridRows
displayGrid.DataBind()
Else
GetFilteredView(gridRows, fromDate, toDate)
End If
End If

End Sub

Protected Sub displayGrid_clickcellevent(ByVal sender As Object, ByVal
e As Infragistics.WebUI.UltraWebGrid.CellEventArgs) Handles
displayGrid.ClickCellButton
Session("docID") = displayGrid.Columns(7).BaseColumnName
Session("certNum") = displayGrid.Columns(8).BaseColumnName
Session("docType") = displayGrid.Columns(9).BaseColumnName (I
do not know how to pull the individual values of the column)

Response.Redirect("'<a href=""javascript:CUDocList(' + fndocid
+ ')""></a>'")
End Sub

Mar 20 '07 #1
0 3119

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Pablo | last post by:
I am using the UltraWebGrid de Infragisitics, I inserted a column of Hyperlynk type, but how the URL is placed this.UG1.Bands.Columns.Type=ColumnType.HyperLink;
1
by: Joe | last post by:
I've been playing with the infragistics ultrawebgrid and I'm trying to do something that seems like it should be a piece of cake. I want to setup the columns, select a datasource and bind it...
0
by: griffitd | last post by:
I am using the infragistics ultrawebgrid to display and enter data from/ to a SQL database. I have a combobox created as the value list of a cell. When I run the software on the development PC...
0
by: Glenn Engelbart | last post by:
I am trying to find out a way to get more code re-use & object orientation in the UI portion of my apps. (There already is plenty of both in the DataAccess & Business Logic portion of my apps. ...
2
by: Rathtap | last post by:
One column of the grid displays 'Notes' and therefore has many more characters than can be properly displayed in a grids' cell. I use a pop-up window containing a TextBox to show that value. I...
0
by: Joxie | last post by:
Hi, All! Recently I'm using ultrawebgrid for my projects... While I try Ultragrid (for windows application) I could call printpreview as ultragrid function, but while I'm using Ultrawebgrid (for...
0
by: malleswarik | last post by:
Hi I have implement in Ultrawebgrid in VB.Net But I have problem with deleting the entire row, while i selected row and click save
1
by: baburk | last post by:
I ultrawebgrid I added validation to a cell. The error message displayed in the cell itself. But I want the error message to be displayed in the validation summary. <igtbl:TemplatedColumn...
0
by: Deshi | last post by:
Hi, I Binding data to textbox of templated column for UltraWebGrid of Infragistics controls, but it through an error 'Infragistics.WebUI.UltraWebGrid.CellItem' does not contain a definition...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.