GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Microsoft  >  DataGrid

 Print  |  
Question:  Hi, I was asked this in an Interview I want to add buttons,images,etc to the footer of a datagrid at runtime. how would i achieve this?



October 10, 2006 05:30:00 #1
 M.Nagababu   Member Since: Visitor    Total Comments: N/A 

RE: Hi, I was asked this in an Interview I want to add...
 

Hi,Yatin

       to added controls to the footer of the datagrid we use <footer Template> </footer template> command in <template columns> </template colums>. For example we a button control in a footer of datagrid like this:

<datagrid><columns><template columns><footer template><asp:button id= btn1 label = button runat = server></asp:button></footer template></template columns></columns></datagrid>

in the same way we add controls to header also. by using <header template></header template>

     

 

Back To Question