Ask to change layout of the GridView on ASP.NET by C# -


Sorry for the stupid question, but I really have to ask how to handle this task.

"post-text" itemprop = "text" I have a lot of questions here but I can apply it to my work. Maybe I'm not enough to understand it. Please suggest me

My project is written by C #. They used Gridview to show data from the database. But now, my client wants to use Gridview and wants to make the same shown table as old, but it is different.

My current table shown is:

  number | Name | DOB | Position | ... 1 | Name A | 01/01/2014 | Onl | ... 2 | Name b 01/01/2014 | Off | ... 3 | Name c 01/01/2014 | Off | ... 4 | Name D | 01/01/2014 | Onl | ...   

Now, I want to change it like this:

  No. 1 name | Name a DOB. 01/01/2014 Status | ONLY --------------------------------- Number 2 Name | Name B Dob | 01/01/2014 Status | Online --------------------------------- Number 3 Name | Name C Dob | 01/01/2014 Status | Online - Number 4 - Name | Name D.Dob. 01/01/2014 Status | ONLY ---------------------------------   

IMPORTANT: Just use GRIDVIEW.

There is someone to help me handle this task. I'm not good at ASP.net, thank you very much.

If the current code is the same as below. & lt; Columns & gt; & Lt; ASP: BoundfieldDefined = "No." HeaderText = "no." / & Gt; & Lt; ASP: BoundfieldDefined = "name" header text = "name" /> & Lt; ASP: BoundfieldDIFF field = "DOB" header text = "DOB" /> & Lt; ASP: BoundfieldDIFF field = "status" header text = "status" /> & Lt; / Column & gt;

You can change it like the following.

  & lt; Columns & gt; & Lt; Asp: TemplateField Header Text = "Key" & gt; & Lt; ItemTemplate & gt; & Lt; asp: Label ID = "Label1" runat = "server" & gt; No. & Lt; / Asp: label & gt; & Lt; Br / & gt; & Lt; Asp: Label ID = "Label2" runat = "server" & gt; Name & lt; / Asp: label & gt; & Lt; Br / & gt; & Lt; asp: Label ID = "Label3" runat = "server" & gt; DOB & lt; / Asp: label & gt; & Lt; Br / & gt; & Lt; asp: Label ID = "Label4" runat = "server" & gt; Status & lt; / Asp: label & gt; & Lt; / ItemTemplate & gt; & Lt; / ASP: TemplateField & gt; & Lt; asp: TemplateField header text = "value" & gt; & Lt; ItemTemplate & gt; & Lt; ASP: label id = "label 5" run = "server" & gt; & lt;% # Eval ("no")%> & Lt; / Asp: label & gt; & Lt; Br / & gt; & Lt; ASP: label id = "label 6" run = "server" & gt; & lt;% # Eval ("name")%> & Lt; / Asp: label & gt; & Lt; Br / & gt; & Lt; ASP: label ID = "label 7" run = "server" & gt; & lt;% # Eval ("DOB")%> & Lt; / Asp: label & gt; & Lt; Br / & gt; & Lt; asp: Label ID = "Label8" runat = "server" & gt; & lt;% # Eval ("status")%> & Lt; / Asp: Label & gt; & Lt; / ItemTemplate & gt; & Lt; / ASP: TemplateField & gt; & Lt; / Column & gt;    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -