Gridview
-
hiii, I like to generate the report using gridview. In that report i am having EmpName,DependentName,RelationType,Email_id what the matter is the gridview have to be in the style EmpName DependentName RelationType Email_id --------------------------------------------------------- John kamal father abc@dfg.com ----------------------------------------------------------- Ashok Friend adg@sdf.com ----------------------------------------------------------- Amit Friend adg@sdf.com ------------------------------------------------------------ In this way i have to get all the dependent names of the employees. How i can make the style of gridview as above. plz anyone help me in doin this... Thanks in advance
-
hiii, I like to generate the report using gridview. In that report i am having EmpName,DependentName,RelationType,Email_id what the matter is the gridview have to be in the style EmpName DependentName RelationType Email_id --------------------------------------------------------- John kamal father abc@dfg.com ----------------------------------------------------------- Ashok Friend adg@sdf.com ----------------------------------------------------------- Amit Friend adg@sdf.com ------------------------------------------------------------ In this way i have to get all the dependent names of the employees. How i can make the style of gridview as above. plz anyone help me in doin this... Thanks in advance
hi, there are lots of grid styles available in Auto Format. Check which style suits for you.
Padmanabhan
-
hi, there are lots of grid styles available in Auto Format. Check which style suits for you.
Padmanabhan
-
hi, there are lots of grid styles available in Auto Format. Check which style suits for you.
Padmanabhan
hii, Not like that... I want gridview in the format that john is the emp_name. I want to get emp_name only in the first row of the gridview... In the second row i should not get the empname have to move directly to the dependent_name. i.e in the second & third row the emp_name cell must be empty.. How i can get this.. plz help me its very urgent Thanks in advance
-
hii, Not like that... I want gridview in the format that john is the emp_name. I want to get emp_name only in the first row of the gridview... In the second row i should not get the empname have to move directly to the dependent_name. i.e in the second & third row the emp_name cell must be empty.. How i can get this.. plz help me its very urgent Thanks in advance
//you can achieve like this GridView1.Rows[i].Cells[i].RowSpan = 4; GridView1.Rows[i].Cells[i].ColumnSpan = 4; (or) refer : Merge DataGrid Header[^] refer : Merge Header - Gridview/DataGrid[^] refer : How to merge cells with equal values in a GridView[^]
Padmanabhan
-
hii, Not like that... I want gridview in the format that john is the emp_name. I want to get emp_name only in the first row of the gridview... In the second row i should not get the empname have to move directly to the dependent_name. i.e in the second & third row the emp_name cell must be empty.. How i can get this.. plz help me its very urgent Thanks in advance
and also refer : Cell Merging of DataGrid in ASP.NET[^]
Padmanabhan
-
and also refer : Cell Merging of DataGrid in ASP.NET[^]
Padmanabhan
If you know how many cells to be merged then you could use this. But if you dont know how many cells to be merged, for example for an employee, no. of dependents will be differing. So Declare a class global variable and in GridView1_RowDataBound event, try this if (str != e.Row.Cells[2].Text) { str = e.Row.Cells[2].Text; } else { e.Row.Cells[2].Text = ""; } :)