Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
53942 Points
8147 Posts
Jun 27, 2010 08:34 PM|LINK
u can try like this
protected void GridViewAll_SelectedIndexChanged(object sender, EventArgs e) { GridViewAll.Rows.OfType<GridViewRow>().ToList(). Where(a => a.RowIndex != GridViewAll.SelectedIndex). ToList().ForEach(b => b.Visible = false); }
Thanks
sansan
All-Star
53942 Points
8147 Posts
Re: GridView Select
Jun 27, 2010 08:34 PM|LINK
u can try like this
protected void GridViewAll_SelectedIndexChanged(object sender, EventArgs e)
{
GridViewAll.Rows.OfType<GridViewRow>().ToList().
Where(a => a.RowIndex != GridViewAll.SelectedIndex).
ToList().ForEach(b => b.Visible = false);
}
Thanks