Skip to content

How to clear previous value in gridview using c#

narasiman rao

Asked Jul 15, 2013, 6:41 AM EDT1 answer
Share
LinkedInX
 In Gridview as follows
 
Room    course       Room course
 

11      LGTF                21    PH1
Edit(link button)   Edit(link button)
 
12 RM                        22     ERS
Edit(link button)     Edit(link button)
 

13 REO                       23     PH2
Edit(link button)      Edit(link button)
 

when i click the edit link button in pop up the course will be shown in dropdownlist.
 
if the user want to change the course for particular room, click the edit(link button) and select the course in the dropdownlist and click the ok. in the gridview changes course will be shown in gridview.
 

for example, for room 11 LGTF is there,if the user want to change the course From LGTF to PH1 means, in the room 21 already course PH1 is alloted, that room 21 course PH1 is to be cleared in the gridview.
 

for that how can i do in asp.net using csharp.
 
Rgds,
Rao

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Senthil Kiumar
    0
    add status column in your db  and  course is alloted to any one to change the status in your db

    ex : before alloted
    status = 'N'
    After alloted
    change to Status ='Y' or else
    0