473,806 Members | 2,944 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Plz Help---Setting a GridView's template control programmaticall y

Hi,
I have a TreeView and a GridView in my UI. On a "CheckChang ed" event of
tree, I do the following
GridView1.Rows[nextRow].Cells[0].Text = e.Node.Text;

or rather

((Label)GridVie w1.Rows[newRow].Cells[0].FindControl("L abel5")).Text =
e.Node.Text;

static newRow = 0; and
newRow is incremented on each event call
I need to insert tree node items to the first cells of GridView rows on
subsequent event firing. The problem is when I click a tree node 2nd time

(to set Rows[1].Cells[0].Text) the value from Rows[0].Cells[0].Text
disappears.

What should I do to have it there?

Plz help me,

Shafia

Nov 19 '05 #1
0 1038

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

Similar topics

1
6507
by: Shravan | last post by:
Hi , I have a datetimepicker in my application. I am dropping it down (showing calendar control). When the drop down window (calendar control) is visible how can I programmatically closeup the dropdown window(calendar control). Thanks in Advance, Shravan.
3
1855
by: Andy Fish | last post by:
Hi, Say I had a repeater-like situation but were I wanted to have every 3rd item look different instead of every alternating one. I could write my own custom control and in the ASPX file something like this: <myControl> <mainItemTemplate>...</> <secondItemTemplate>...</> <thirdItemTemplate>...</>
10
1639
by: fripper | last post by:
I have a VB .Net web app and I want to reposition a textbox control on the webform programmatically. I'm not sure how to do that ... can someone help please? Thanks ...
1
1195
by: Sharon | last post by:
Hi all, I'm trying to programmatically render a user control, but problem is, i don't have the control type and i cannot use register directive as the context is not an aspx page. Any ideas, links. Thanks, Sharon.
2
1350
by: johnb41 | last post by:
I want to create a textbox programmatically and add the SAME textbox to to different panels. This code does not work: Dim tb As New TextBox tb.text = "xyz" Panel1.Controls.Add(tb) Panel2.Controls.Add(tb) The textbox gets added to Panel2, but not Panel1. How can i get the textbox to go to both panels? I can get it to work by duplicating the
0
3497
by: Michel Couche | last post by:
Hello, I would like to programmatically set the visibility of a selectedWizardStep after clicking on a button contained in an other one. I found the following in an article from D. Esposito (http://msdn.microsoft.com/msdnmag/issues/04/11/CuttingEdge/) "The contents of a WizardStep can be dynamically adjusted and steps can be
3
2308
by: komaladevi | last post by:
hi all! Can any one please help me in solving my problem my problem is ...... how to hide the edit item template control (visibility of the textbox control should be false) once we click on edit button thanks all komala
2
6984
by: R.A.F. | last post by:
Hi, 2 Days ago i wrote a post about "how to add programmatically custom control on Toolbox". I'm still blocked with this issue. Is there someone who did it under C#.NET 2005 and 2008 ? thanks a lot,
3
2767
by: =?Utf-8?B?QW5nZWw=?= | last post by:
I seem to understand how the control works as long as I mated to SqlDataSource or ObjDataSource it works fine. But I do not want to flatten my design in this manner. I am interested in how I can programmatically manipulate the control. In other words maybe just use the data source then extract from the control the information do with it as I see fit. The opposite is also true. I want to be able to add or modify the data in the...
0
10369
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
10372
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
10110
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...
1
7650
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
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5682
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
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
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.