Click here to Skip to main content
15,887,434 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionError using Login Control with UpdatePanel Pin
BobsAfro21-May-07 3:45
BobsAfro21-May-07 3:45 
AnswerRe: Error using Login Control with UpdatePanel Pin
proach21-May-07 5:05
proach21-May-07 5:05 
QuestionGraphs in ASP using office tools Pin
ragavan21-May-07 3:04
ragavan21-May-07 3:04 
AnswerRe: Graphs in ASP using office tools Pin
Sathesh Sakthivel21-May-07 3:07
Sathesh Sakthivel21-May-07 3:07 
GeneralRe: Graphs in ASP using office tools Pin
ragavan21-May-07 17:47
ragavan21-May-07 17:47 
QuestionGridView control Pin
chandrikav21-May-07 2:38
chandrikav21-May-07 2:38 
QuestionQuery on GridView control Pin
chandrikav21-May-07 2:37
chandrikav21-May-07 2:37 
AnswerRe: Query on GridView control Pin
varshavmane21-May-07 2:43
varshavmane21-May-07 2:43 
Try this:

<asp:TemplateField HeaderText="Add">
<ItemStyle HorizontalAlign="Center" Width="50px" />
<HeaderStyle Width="70px" CssClass="heading" />
<ItemTemplate>
<asp:CheckBox ID="chkAdd" runat="server" AutoPostBack=true OnCheckedChanged="chkAdd_Changed" CssClass="text"/>
</ItemTemplate>
</asp:TemplateField>


On Code Behind do this:

Protected Sub chkAllAdd_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles chkAllAdd.CheckedChanged
Dim gvRow As GridViewRow
For Each gvRow In GridViewForm.Rows
If gvRow.RowType = ListItemType.Item Or gvRow.RowType = ListItemType.AlternatingItem Then
If chkAllAdd.Checked = True Then
CType(gvRow.FindControl("chkAdd"), CheckBox).Checked = True
CType(gvRow.FindControl("chkView"), CheckBox).Checked = True
If chkAllModify.Checked = True And chkAllView.Checked = True And chkAllDelete.Checked = True Then
chkAllPermission.Checked = True
End If
Else
CType(gvRow.FindControl("chkAdd"), CheckBox).Checked = False
chkAllPermission.Checked = False
End If
End If
Next
If chkAllAdd.Checked = True Then
chkAllView.Checked = True
End If
End Sub


Hope this helps u???

QuestionDatagrid Pin
Mkanchha21-May-07 2:23
Mkanchha21-May-07 2:23 
AnswerRe: Datagrid Pin
Sathesh Sakthivel21-May-07 2:29
Sathesh Sakthivel21-May-07 2:29 
AnswerRe: Datagrid Pin
proach21-May-07 5:01
proach21-May-07 5:01 
AnswerRe: Datagrid Pin
proach21-May-07 5:08
proach21-May-07 5:08 
QuestionASP.NET - webparts - catalog zones Pin
Jagadeesh Jupalli21-May-07 1:54
Jagadeesh Jupalli21-May-07 1:54 
AnswerRe: ASP.NET - webparts - catalog zones Pin
Sathesh Sakthivel21-May-07 2:28
Sathesh Sakthivel21-May-07 2:28 
QuestionRe: ASP.NET - webparts - catalog zones Pin
Jagadeesh Jupalli21-May-07 2:59
Jagadeesh Jupalli21-May-07 2:59 
QuestionSystem.IO.FileSystemWatcher problem Pin
proach21-May-07 0:44
proach21-May-07 0:44 
QuestionServer.MapPath Pin
.NET- India 21-May-07 0:28
.NET- India 21-May-07 0:28 
AnswerRe: Server.MapPath Pin
Steven J Jowett21-May-07 0:33
Steven J Jowett21-May-07 0:33 
QuestionASP.NET with c# in Window Based Application Pin
.NET- India 21-May-07 0:25
.NET- India 21-May-07 0:25 
AnswerRe: ASP.NET with c# in Window Based Application Pin
Sherin Iranimose21-May-07 0:43
Sherin Iranimose21-May-07 0:43 
AnswerRe: ASP.NET with c# in Window Based Application Pin
Christian Graus21-May-07 1:39
protectorChristian Graus21-May-07 1:39 
Questioninserting multiple rows at a time Pin
yuvachandra21-May-07 0:20
yuvachandra21-May-07 0:20 
AnswerRe: inserting multiple rows at a time Pin
Sherin Iranimose21-May-07 2:07
Sherin Iranimose21-May-07 2:07 
GeneralRe: inserting multiple rows at a time Pin
yuvachandra21-May-07 2:14
yuvachandra21-May-07 2:14 
GeneralRe: inserting multiple rows at a time Pin
Sherin Iranimose21-May-07 2:24
Sherin Iranimose21-May-07 2:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.