Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6131535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:59:13+00:00 2026-05-23T16:59:13+00:00

I am learning T4 templates right now, and all examples I got on internet

  • 0

I am learning T4 templates right now, and all examples I got on internet is about using the tables for code generation. I want to use stored procedure result columns to generate automated UI, is it possible? OR I have to create view for same query? in that case, how to read from view?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:59:14+00:00Added an answer on May 23, 2026 at 4:59 pm

    I got the solution and here is how you can generate a rad grid directly from the sp name

    
    <#
    'requires: <#@ assembly name="System.Data" #>
      dim Server as new Server(".\sqlexpress")
        dim database as new Database(server, "xxxx")
        dim strSpName as String= "sp_xxxx"
        Dim dt as System.Data.DataTable= database.ExecuteWithResults("exec sp_GetEquipment").Tables(0)
        dim ctlName as String = "grdEqp"
    #>
    <telerik:RadGrid ID="grd" runat="server" Skin="Web20" AutoGenerateColumns="false">
    <MasterTableView>
    <Columns>
    
    <#
        For Each column As System.Data.DataColumn In dt.Columns
    #><telerik:GridBoundColumn DataField="<#=column.ColumnName #>" HeaderText="<#=column.ColumnName  #>"/>
    <#Next#>
    </Columns>
                    </MasterTableView>
    </telerik:RadGrid>
    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm learning how to use OpenGL ES 2.0 on iOS. Right now I want
right now i am learning C++, and now I know the basic concept of
I have already designed about 3 templates I wanted to make use of, but
My primary language right now is D, and I'm in the process of learning
I'm learning about the various data structures and templates available in C++. While include
I'm learning JavaScript and Google Closure, and obviously (once you start using templates and
I am learning about control templates in WPF and checking out how to replace
Okay, so I'm just learning about templates. Anyways, I'm probably (most definitely) doing something
I have just been learning about how styles and control templates in WPF can
I am learning templates. Which book is worth buying for doing template programming? I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.