I develope simple application.. In this application output contains two gridview and two buttons.. When i click first button corresponding result show in first gridview.When i click second button result show in second gridview... That time First gridview also display.. I want to show second gridview only......... Anybody know answer reply me....
Thanks...
saravana
Loading
Amit ChoudharyPosted Mar 18, 2010, 5:06 AM
when you get answer of your question from post then please mark the answer from Do you like the answer?
It helps others to find the quick answer.
SARAVANA PERUMALPosted Mar 18, 2010, 4:38 AM
Hirendra SisodiyaPosted Mar 18, 2010, 4:16 AM
gridview1.visible=True;
gridview2.visible=false;
on click event of Button2:
gridview1.visible=False;
gridview2.visible=True;
thanks
Amit ChoudharyPosted Mar 18, 2010, 3:50 AM
Onclick on 2nd button either set Gridview.Visible=false;
or
GridView1.DataSource=null;
GridView1.DataBind();
and vice versa for button 1
Please mark as answer if it helps.