473,809 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Devexpress

Hello to all.
Please let me know how to define grid view.
When I put following code in to the application file the error ?Type 'GridView' is not defined? persists all the time. Please help me

'Deletes selected data and group rows
Public Sub DeleteSelectedR ows(ByVal view As GridView)
'Create a list containing selected row handles
Dim selRowsCount As Integer = view.SelectedRo wsCount
If selRowsCount = 0 Then Return
Dim selRows As ArrayList = New ArrayList(view. GetSelectedRows ())
'Process selected group rows and add their child data rows to the list
Dim i As Integer
For i = 0 To selRowsCount - 1
getChildRowHand les(view, CType(selRows(i ), Integer), selRows)
Next

'Copy list elements to an array
Dim selRowsArray(se lRows.Count - 1) As Integer
For i = 0 To selRowsArray.Le ngth - 1
selRowsArray(i) = CType(selRows(i ), Integer)
Next
'Sort the array
Array.Sort(selR owsArray)

'Prevent excessive visual updates while deleting
view.BeginUpdat e()
Try
'Delete rows starting from the last element
For i = selRowsArray.Le ngth - 1 To 0 Step -1
view.DeleteRow( selRowsArray(i) )
Next
view.ClearSelec tion()
Finally
view.EndUpdate( )
End Try
End Sub
'Returns handles of child data rows for the given group row
Public Sub getChildRowHand les(ByVal view As GridView, ByVal groupRowHandle As Integer, ByVal childRowHandles As ArrayList)
If Not view.IsGroupRow (groupRowHandle ) Then Return
'Get the number of immediate children
Dim childCount As Integer = view.GetChildRo wCount(groupRow Handle)
Dim i As Integer
For i = 0 To childCount - 1
'Get the handle of a child row with the required index
Dim childHandle As Integer = view.GetChildRo wHandle(groupRo wHandle, i)
'If the child is a group row, then add its children to the list
If view.IsGroupRow (childHandle) Then
getChildRowHand les(view, childHandle, childRowHandles )
Else
'The child is a data row. Add it's handle to childRowHandles providing that the handle was not added before
If Not childRowHandles .Contains(child Handle) Then childRowHandles .Add(childHandl e)
End If
Next
End Sub

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>LQeKh2cnvUe OU+4hSoR+CA==</Id>
Jul 21 '05 #1
0 1453

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

Similar topics

3
2925
by: Eric B | last post by:
Hi We have started to work on xtragrid V3 evaluation , and then we bought the ful version (which is V4). So we uninstalled the free version and installed the v4. But with this new version we're unable to use the grids in our current project : they can't be dropped on forms, and existing grids don't appear anymore in design mode. If we create a completely new project and use grids in it, it seems to work
1
1868
by: Jéjé | last post by:
Hi, I continue too looking for grid webcontrols and I have found 2 good products: * WebGrid.NET from Intersoft (www.Intersoftpt.com) * DevExpress ASPxGrid (www.devexpress.com) these 2 products provide client side grouping, sorting, column resizing, easy editing etc...
3
11484
by: Ronald S. Cook | last post by:
Hi everyone, We're needing to pick a suite of components for our C#/VS 2005 development. Top on our list is a treeview that integrates with a datagrid. I think all the big goes provide that. Does anyone know which suite is the "best" or are they (Infragistics, ComponentOne, DevExpress, other) all about the same? Thanks for any insight or opinion.
1
2260
by: theburnetts | last post by:
I am building an ASP.NET application that has a requirement that the user should be able to download all of the data that they have input into the system and save it to a file on their local PC. Then at some future time they should be able to upload it back to the web server and continue working on it. (Don't ask me why they have to be able to do this. Apparently the users are super paranoid about saving their data to the server and...
6
4817
by: Blasting Cap | last post by:
I'm trying to convert a 1.1 app to 2.0, and keep finding one thing after another that either Framework 2.0 or Visual Studio 2005 doesn't like. Now this - In the global.asax, code that has been running for nearly 4 years now is giving me a problem. The code is supposed to give the user a "clean" page with a login link on it and send an email to me when an app blows up. It also is supposed to write to the event log too.
1
14254
by: nandan | last post by:
Hi, Iam using devexpress xtrareports with vb.net .I want to insert page break after writting some contents to the Detail area(band). can anybody help me?Thanks in advance Nandan I using the following code Private Function drawtable() Try Dim table As XRTable Dim row() As XRTableRow Dim cell() As XRTableCell table = New XRTable
1
3019
by: cmdolcet69 | last post by:
Pleae help im trying to help fix a bug in some software that uses the Dev Express 3rd party control for Reports.Had anyone ever used this product?
3
3138
by: brianedow | last post by:
Does anyone know if DEVExpress is still around. Their website does not seems to work anymore. I hope they are not gone. http://www.devexpress.com
0
1448
LoanB
by: LoanB | last post by:
Hey all Can anyone with some DevExpress Knowledge help me convert the C# code below to accommodate a DevExpress XtraGrid with a View called gridView1: this.dgCode.Rows.Cells.Value dsPrice.Tables.Rows.ItemArray.GetValue(1).ToString().Trim(); currently dgCode is simply a standard VS2005 data grid. Much Appreciated!
6
2855
by: Cirene | last post by:
Im thinking about purchasing the RadControls for ASP.NET AJAX, by Telerik. Any advice, suggestions, or opinions? What has been your experience? Link: http://www.telerik.com/products/aspnet-ajax/overview.aspx The same goes for Devexpress. I'm thinking of purchasing their ASPxScheduler Stuite. Any experience with their products? Are they solid and good performance? Link: ...
0
10635
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10378
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10115
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9198
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7653
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.