Home
About
Contact
Photo Gallery
Links
Articles
Personal
Forum
Home
Forum
Thread
Search
Язык сайта:
ENGLISH
RUSSIAN
Username:
Password:
Remember me
Register
Lost password
Thread:
ASP.NET
/Show position in the data from GridView
Post Reply
22 April 2008
20:43:00
Sergey
Posts: 0
Show position in the data from GridView
string sstr = "";
foreach (GridViewRow grv in GridView1.Rows )
{
if (((CheckBox)grv.FindControl("chkGrid")).Checked)
{
int index = grv.RowIndex;
int id = (int)GridView1.DataKeys[index].Values["CategoryID"];
sstr = sstr+"," + id.ToString();
}
}
Quote Post
Post Reply
Requesting information...