Click here to Skip to main content
15,894,405 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCrystalReport Error... Pin
sandhya1412-Nov-08 23:49
sandhya1412-Nov-08 23:49 
QuestionVariables Pin
ellllllllie12-Nov-08 23:35
ellllllllie12-Nov-08 23:35 
AnswerRe: Variables Pin
Arun Jacob12-Nov-08 23:52
Arun Jacob12-Nov-08 23:52 
AnswerRe: Variables Pin
Tarun Dudhatra13-Nov-08 0:11
Tarun Dudhatra13-Nov-08 0:11 
AnswerRe: Variables Pin
Christian Graus13-Nov-08 2:18
protectorChristian Graus13-Nov-08 2:18 
GeneralRe: Variables Pin
ellllllllie13-Nov-08 4:46
ellllllllie13-Nov-08 4:46 
Question[Message Deleted] Pin
Lipishree12-Nov-08 23:28
Lipishree12-Nov-08 23:28 
AnswerRe: How to pass information from one gridview to other? Pin
Tarun Dudhatra13-Nov-08 0:05
Tarun Dudhatra13-Nov-08 0:05 
Hi lipi,
I hope you have heard about GridView inside GridView.
Just try that you can easily do that.
If you haven't heard about that just go through this code,

Put one GridView on aspx page with inside This master gridview put another gridview with name 'GridView2' ok

Write RowBound event of GridView1(Master gridView)

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
GridViewRow row = e.Row;
if (row.DataItem == null)
{
return;
}
GridView gv = new GridView();
gv = (GridView)row.FindControl("GridView2");

//Prepare the query for Child GridView by passing the Employee ID of the parent row
DataSet ds = ChildDataSource(((DataRowView)e.Row.DataItem)["employeeID"].ToString());
gv.DataSource = ds;
gv.DataBind();
}

Here is the ChildDataSource Method

private DataSet ChildDataSource(string strEmployeeId)
{
DataSet ds = new DataSet();
string Query = "Select * from Employee_Master where EmployeeId='" + strEmployeeId+ "'";

// This is my structure to access data ok just use here your code
ds = dataacesslayer.SqlHelper.ExecuteDataset(DBCon.ConnectionString, CommandType.Text, Query);
return ds;
}

And let me know is your problem solved or not?

http://techiefromsurat.blogspot.com/
QuestionCant able to edit .net souce code. Pin
Raviraj12-Nov-08 22:03
Raviraj12-Nov-08 22:03 
AnswerRe: Cant able to edit .net souce code. Pin
Padmanabh Ganorkar12-Nov-08 22:07
Padmanabh Ganorkar12-Nov-08 22:07 
GeneralRe: Cant able to edit .net souce code. Pin
Raviraj12-Nov-08 22:22
Raviraj12-Nov-08 22:22 
GeneralRe: Cant able to edit .net souce code. Pin
Padmanabh Ganorkar12-Nov-08 22:47
Padmanabh Ganorkar12-Nov-08 22:47 
GeneralRe: Cant able to edit .net souce code. Pin
Raviraj12-Nov-08 23:07
Raviraj12-Nov-08 23:07 
GeneralRe: Cant able to edit .net souce code. Pin
Padmanabh Ganorkar12-Nov-08 23:21
Padmanabh Ganorkar12-Nov-08 23:21 
GeneralRe: Cant able to edit .net souce code. Pin
Raviraj12-Nov-08 23:37
Raviraj12-Nov-08 23:37 
GeneralRe: Cant able to edit .net souce code. Pin
Padmanabh Ganorkar13-Nov-08 0:19
Padmanabh Ganorkar13-Nov-08 0:19 
AnswerRe: Cant able to edit .net souce code. Pin
eyeseetee12-Nov-08 22:34
eyeseetee12-Nov-08 22:34 
GeneralRe: Cant able to edit .net souce code. Pin
Raviraj12-Nov-08 22:50
Raviraj12-Nov-08 22:50 
QuestionAsp.Net Pin
Member 344710412-Nov-08 20:34
Member 344710412-Nov-08 20:34 
AnswerRe: Asp.Net Pin
Guffa12-Nov-08 21:55
Guffa12-Nov-08 21:55 
AnswerRe: Asp.Net Pin
Brij12-Nov-08 22:11
mentorBrij12-Nov-08 22:11 
QuestionHelp need in gridview Pin
Senthil S12-Nov-08 19:45
Senthil S12-Nov-08 19:45 
AnswerRe: Help need in gridview Pin
Padmanabh Ganorkar12-Nov-08 21:48
Padmanabh Ganorkar12-Nov-08 21:48 
AnswerRe: Help need in gridview Pin
Ravi_2112-Nov-08 21:56
Ravi_2112-Nov-08 21:56 
AnswerRe: Help need in gridview Pin
Tarun Dudhatra13-Nov-08 0:30
Tarun Dudhatra13-Nov-08 0:30 

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.