|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Plz Help.....GridView and Cells textI have a TreeView and a GridView in my UI. On a "CheckChanged" event of tree, I do the following GridView1.Rows[nextRow].Cells[0].Text = e.Node.Text; or rather ((Label)GridView1.Rows[newRow].Cells[0].FindControl("Label5")).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 ..net 2.o questions should be handled in the whidbey newsgroup
-- Show quoteHide quoteRegards, Alvin Bruney - ASP.NET MVP [Shameless Author Plug] The Microsoft Office Web Components Black Book with .NET Now available @ www.lulu.com/owc "Shafia" <sbat***@ultimus.com> wrote in message news:OLVBoTDQFHA.3384@TK2MSFTNGP10.phx.gbl... > Hi, > I have a TreeView and a GridView in my UI. On a "CheckChanged" event of > tree, I do the following > GridView1.Rows[nextRow].Cells[0].Text = e.Node.Text; > > or rather > > ((Label)GridView1.Rows[newRow].Cells[0].FindControl("Label5")).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 > > > > >
Customizing ASP.NEt Hyperlink Control
IE Web Controls - discontinued ??? Re: At which life cycle should EnsureChildControls() be called? custom validator and button events custom validator and button events Urgent! GridView and templated controls binding---------Plz help Control Template How do I post hidden variables to another form from a popup? Sorting problem in Data grid control dataset values in a dropdownlist |
|||||||||||||||||||||||