Click here to Skip to main content
15,912,021 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to find checkbox in header template Pin
_AK_22-May-06 0:44
_AK_22-May-06 0:44 
GeneralRe: how to find checkbox in header template Pin
ayyp22-May-06 0:53
ayyp22-May-06 0:53 
GeneralRe: how to find checkbox in header template Pin
_AK_22-May-06 1:03
_AK_22-May-06 1:03 
GeneralRe: how to find checkbox in header template Pin
ayyp23-May-06 0:07
ayyp23-May-06 0:07 
GeneralRe: how to find checkbox in header template Pin
_AK_23-May-06 0:29
_AK_23-May-06 0:29 
GeneralRe: how to find checkbox in header template Pin
ayyp23-May-06 4:00
ayyp23-May-06 4:00 
GeneralRe: how to find checkbox in header template Pin
_AK_23-May-06 19:20
_AK_23-May-06 19:20 
GeneralRe: how to find checkbox in header template [modified] Pin
ayyp23-May-06 19:46
ayyp23-May-06 19:46 
hai apurva, really i don't what wrong with my code here is my entire page code.check this plz........
private void Page_Load(object sender, System.EventArgs e)
{
if(!Page.IsPostBack)
{
bind();
}
}
public void bind()
{
con.Open();
SqlCommand cmd=new SqlCommand("select * from grid",con);
SqlDataAdapter da=new SqlDataAdapter(cmd);
DataSet ds=new DataSet();
da.Fill(ds);
DataGrid2.DataSource=ds;
DataGrid2.DataBind();
con.Close();
}
private void Button1_Click(object sender, System.EventArgs e)
{
bind();
}

private void DataGrid2_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if(e.Item.ItemType==ListItemType.Header)
{
CheckBox chk=(CheckBox) e.Item.FindControl("CheckBox1");
if(chk.Checked==true)
Response.Write("true");
else
Response.Write("false");
}
}
if possible plz snd u r code....that will help me
and here i find one more thing when i click on the button the checkbox is automatically turned to unchecked thats why it display false is this any reason for this?why it happening like this?Confused | :confused:

ayyp

-- modified at 1:57 Wednesday 24th May, 2006
GeneralRe: how to find checkbox in header template [modified] Pin
_AK_23-May-06 21:08
_AK_23-May-06 21:08 
QuestionShare Pin
AnhTin21-May-06 22:57
AnhTin21-May-06 22:57 
AnswerRe: Share Pin
Vasudevan Deepak Kumar21-May-06 23:05
Vasudevan Deepak Kumar21-May-06 23:05 
QuestionActive Directory icons from dll Pin
m0th21-May-06 22:54
m0th21-May-06 22:54 
QuestionPrise en compte du point sur le pavé numérique du clavier Pin
GBALE21-May-06 22:48
GBALE21-May-06 22:48 
AnswerRe: Prise en compte du point sur le pavé numérique du clavier Pin
_AK_21-May-06 22:54
_AK_21-May-06 22:54 
GeneralRe: Prise en compte du point sur le pavé numérique du clavier Pin
KrIstOfK21-May-06 23:07
KrIstOfK21-May-06 23:07 
GeneralRe: Prise en compte du point sur le pavé numérique du clavier Pin
_AK_21-May-06 23:14
_AK_21-May-06 23:14 
GeneralRe: Prise en compte du point sur le pavé numérique du clavier Pin
GBALE21-May-06 23:59
GBALE21-May-06 23:59 
GeneralRe: Prise en compte du point sur le pavé numérique du clavier Pin
KrIstOfK22-May-06 0:02
KrIstOfK22-May-06 0:02 
GeneralRe: Prise en compte du point sur le pavé numérique du clavier Pin
GBALE22-May-06 0:12
GBALE22-May-06 0:12 
GeneralRe: Prise en compte du point sur le pavé numérique du clavier Pin
KrIstOfK22-May-06 1:41
KrIstOfK22-May-06 1:41 
QuestionC#.NET dockable windows in .NET 2.0 Pin
vin rao21-May-06 22:13
vin rao21-May-06 22:13 
AnswerRe: C#.NET dockable windows in .NET 2.0 Pin
RaviBattula21-May-06 23:11
professionalRaviBattula21-May-06 23:11 
AnswerRe: C#.NET dockable windows in .NET 2.0 Pin
alexey N22-May-06 0:23
alexey N22-May-06 0:23 
AnswerRe: C#.NET dockable windows in .NET 2.0 Pin
ekynox22-May-06 12:24
ekynox22-May-06 12:24 
QuestionAdd in in C#2 for Excel not found. Pin
Kadur21-May-06 22:04
Kadur21-May-06 22:04 

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.