Use This Source File In Html
[asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"]
[Columns]
[asp:BoundField DataField="roll_no" HeaderText="Roll No" /]
[asp:BoundField DataField="s_name" HeaderText="Student Name" /]
[asp:BoundField DataField="class" HeaderText="Class" /]
[asp:TemplateField]
[ItemTemplate]
[asp:CheckBox ID="ch1" Text='<%# Eval("roll_no") %>' runat="server" /]
[/ItemTemplate]
[/asp:TemplateField]
[/Columns]
[/asp:GridView]
In your .cs file in the class level write this line of code
First Use This Code in Page load
ArrayList alist = new ArrayList();
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
//Populate data and Bind in Gridview
}
}
Saturday, April 24, 2010
-
In object-oriented languages the term "interface" is often used to define an abstract type that contains no data but exposes behav...
-
The following article discusses the WPF command binding feature with relation to Mouse clicks. One of WPF powerful features is the bindin...
-
In this section, you will learn about the action method of controller class. All the public methods of a Controller class are called Act...