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

Passing Datagrid source into a second Web Froms

menayah
32
Dear all,

How to Passing Datagrid source into a second Web Froms in VB .Net?

Thanks and Regards

Monzer ( newbie in VB. Net )
Jul 26 '07 #1
5 1703
kenobewan
4,871 Expert 4TB
What are you trying to achieve? Having the code in a class and just calling that may be easier.
Jul 26 '07 #2
menayah
32
What are you trying to achieve? Having the code in a class and just calling that may be easier.

I'm trying to copy what is in the data grid content to another webform. my data grid is not fixed ( meaning: in run time the data grid may creat more than one column ) - Just like copying a table from excel sheet to another excel sheet -

Thanks
Oct 25 '07 #3
Shashi Sadasivan
1,435 Expert 1GB
Well. I hope you know what you are doing there...
but i would say that your main query is how to pass data between webforms...
Is it so?
There have been quite a few disucssions about this...
Have you tried sessions?
Oct 25 '07 #4
kunal pawar
297 100+
Dear all,

How to Passing Datagrid source into a second Web Froms in VB .Net?

Thanks and Regards

Monzer ( newbie in VB. Net )
Set session variable of Dataset which is used for Datagrid Datasource

And on Second form check whether tht session exist or not if yes then do you action

Code

session("dsSess")=Dataset Object
Datagrid object.DataSource = Dataset Object

On Second Form
if session("dsSess") is nothing then
Dim ds as DataSet = (DataSet)session("dsSess")

' DO YOUR ACTION

end if
Oct 25 '07 #5
menayah
32
Set session variable of Dataset which is used for Datagrid Datasource

And on Second form check whether tht session exist or not if yes then do you action

Code

session("dsSess")=Dataset Object
Datagrid object.DataSource = Dataset Object

On Second Form
if session("dsSess") is nothing then
Dim ds as DataSet = (DataSet)session("dsSess")

' DO YOUR ACTION

end if

Thanks for the help ;)
Nov 5 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: TT (Tom Tempelaere) | last post by:
Hi there, I'm struggling to get the right event. I want to be notified of a change in a cell in a DataGrid made by a user. I need following information about the change: * the row index * the...
8
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
3
by: Brian Smith | last post by:
I have a .aspx page (we'll call it Form1) with a datagrid on it. The datagrid is populated from a dataset that I manually entered data into (the data isn't in a database). The datagrid on Form1...
7
by: Cemal Karademir | last post by:
Hello, Please forgive my simple question, but i don't know the correct synatx. From the masterpage i want to put a text in an textbox and then select an item in the datagrid. I do know how to...
1
by: thegame | last post by:
Filling One DataGrid Based on Selection from Another DataGrid - Both in Separate User Controls Hello, I have an interesting dilemma. I have an ASPX page with two user controls (two ASCXs). ...
8
by: Chris | last post by:
Hi, I have two froms (form1 and form2). I want to be able to pass values from form 1 to form2 and be able to use those values leter in form2. This is my code for form1 Private Sub...
4
by: Joe | last post by:
Hello, I have a datagrid in an nested html table (one table inside of another table) and have set the allowsSorting property to true. I've created in the code-behind a method (Sub - I'm using...
2
by: Carl Heller | last post by:
Working in VS2003, .Net 1.1 I'm working on a project where I compare data between two databases. This is a lengthy process, and very data intensive, so I decided to create a class, and thread...
0
by: SanjayKumarDey | last post by:
I have a vb.net datagrid bound to a dataview on a windows form. I want to use the datagrid to display and filter a list of items , but since the data is complex, I don't want the user to edit the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...

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.