Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Plz Help---GridView and Cells text

Reply
Thread Tools

Plz Help---GridView and Cells text

 
 
Shafia
Guest
Posts: n/a
 
      04-13-2005
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





 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert yyyymmdd text cells into date cells =?Utf-8?B?ZF9jYW1wZWxvQGhvdG1haWwuY29t?= Microsoft Certification 2 11-22-2006 04:52 PM
Plz Help.....GridView and Cells text Shafia ASP .Net Web Controls 0 04-13-2005 02:27 PM
Re: plz help!!! plz plz plz plzplzplz help the noob alkzy Microsoft Certification 0 10-31-2004 10:04 PM
Computer Problems... Plz Plz Plz HELP ME..... Nick Computer Support 0 06-04-2004 08:50 PM
Cells[].Text or Cells[].Controls[0] Joel Finkel ASP .Net Datagrid Control 0 09-01-2003 04:42 PM



Advertisments