set first row is visible false in gridview

Posted by Venkatesh under ASP.NET on 5/16/2011 | Points: 10 | Views : 7354 | Status : [Member] | Replies : 3
HI

How to set first row is visible false in gridview.

Thanks
Venkatesh.P




Responses

Posted by: SheoNarayan on: 5/16/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Do this

GridView1.Rows[0].Visible = false;


You can do this using client side as well using jQuery selectors.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Prabhakar on: 5/16/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi venkatesh

Write this code on Girdview Rowdatabound

gv.Rows[0].Visible = false;

Best Regard's
Prabhakar

Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: 23rasika on: 5/16/2011 [Member] Starter | Points: 25

Up
0
Down
bind your datagrid with data source say Dsource.

First row is associated with currency manager position. Thats why enable to make it invisible.
Now do the following:

Dsource.CurrencyManager.Position = 1;
dataGridView1.Rows[0].Visible = false;

I hope this will help you!!!
Thnx.

Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response