This blog is about the dotnet.all types of codes,news about dotnet including asp.net,vb.net,c# and know about new dotnet technology.programing in asp.net,vb.net,c#, ajax, AJAX tech support for .net and discuss the new technology in dotnet.ncluding asp.net,vb.net,c# and know about new dotnet technology.programing in asp.net,vb.net,c#, ajax, AJAX tech support for .net and discuss the new technology in dotnet.asp.net programming,dot net programming,dotnet programs,dotnet source code,source code.

Free Hosting

Free Hosting

Sunday, November 2, 2008

add check box Control to the datagrid list (asp.net code)

To add check box Control to the datagrid list

//add this in the html of the datagrid



''>







To loop through the control

////////////////////////

object obj;

HtmlInputCheckBox chk;

//loop through each controls

foreach (Control objCtrl in this.DataGrid1.Items)

{

obj = objCtrl.FindControl("chkID");

chk = (HtmlInputCheckBox)(obj);

if(chk.Checked==true)

{
// do somethings
}

}

0 comments:

dotnet(.Net) Project Source code Downloads and Tutorials

Email Subscrption



Enter your email address:

Delivered by FeedBurner

Feedburner Count

Blog Archive

Unique Visitor

Design by araba-cı | MoneyGenerator Blogger Template by GosuBlogger