How to get attendece..??????

Posted by Rock_Monu under ASP.NET on 9/18/2012 | Points: 10 | Views : 719 | Status : [Member] | Replies : 3
how to get attendence in DataGridViewComboBoxColumn in datagridview from tbl_attendence in asp.net with c#..???
plz give me reply .urgent..??




Responses

Posted by: Vikash on: 9/18/2012 [Member] Starter | Points: 25

Up
0
Down
You can use it like following..........

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
foreach (GridViewRow gr in GridView1.Rows)
{
DropDownList cb_attent = (DropDownList)gr.FindControl(" cb_Attent");
if (condition)
{
cb_attent.DataSource = //fetch a single column from the table assign to datasource property
cb_attend.DisplayMember = "AtendenceID";
cb_attend.ValueMember = "AttendeeName";
}
}
}

Regards,
Vikash Pathak

Rock_Monu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rock_Monu on: 9/18/2012 [Member] Starter | Points: 25

Up
0
Down
@Vikash
bt sir in datagridview haven't row databound in windows form ..!!

Rock_Monu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vikash on: 9/18/2012 [Member] Starter | Points: 25

Up
0
Down
Plz give your complete form with code.........

Regards,
Vikash Pathak

Rock_Monu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response