Search

You searched for the word(s): userid:636357

Matching Posts

  • Re: Can you have nested gridviews or a gridview inside a gridview?

    Glad you found this usefull. The permalink to the article is http://www.kellytadams.com/mt-archives/2006/01/nested-gridview.html After learning a but more, I think it's a bit wasteful, since it makes a new connection for each row in your master gridview (turn paging on!).
    Posted to Data Presentation Controls (Forum) by CodeSalad on 5/2/2008
  • Re: Total Row Count of GridView

    If you are using the Scott Mitchell tutorials on custom paging, and an object data source, you can get the total row count for your data this way: It's important to note that the Selected event on the ODS get's called twice, once returning the data set, and again to call the method you specified in the SelectCountMethod property. Simply test to see if the return is an Int32 in the event. protected void searchDS_Selected( object sender, ObjectDataSourceStatusEventArgs e) { if (e.ReturnValue
    Posted to Data Presentation Controls (Forum) by CodeSalad on 8/3/2007
  • Re: reportviewer: code the windows credentials

    This can be done. First create a class called ReportServerCredentials that implements the IReportServerCredentials interface. You will need to import System.Net and Microsoft.Reporting.WebForms to this class. Overload the New and GetFormsCredentials methods and the NetworkCredentials and ImpersonationUser properties. Here's a class that I use: Imports Microsoft.VisualBasic Imports Microsoft.Reporting.WebForms Imports System.Net Public Class ReportServerCredentials Implements IReportServerCredentials
    Posted to SQL Server Reporting Services (Forum) by CodeSalad on 8/10/2006
  • Re: Configure Data Source doesn't set Size property on parameters in VS2005

    I would have loved to use the ObjectDataSource and confined the business logic there, but we are only a three developer department, this app is a rush job (when are they not?), and it's intranet only-- so, yeah, the SQL is in the, uh, ahem, presentation layer. Basically this all adds up to: quickness beats out elegance and maintainability. Maybe part of it is that old habits are hard to break. I seem to remember a 15Seconds or 4GuysFromRolla article discussing ad hoc versus business objects from
    Posted to Data Presentation Controls (Forum) by CodeSalad on 2/16/2006
  • Configure Data Source doesn't set Size property on parameters in VS2005

    Wow, I love how fast I can crank out an app using the built in "Congfigure Data Source" wizard for the SqlDataSource objects. It's nice that it automatically interrogates the schema of the table/stored proc to generate the proper INSERT and UPDATE commands, and then it creates parameters of the proper type (strings for varchars, bytes for tinyints, etc.). But man, I sure wish it would set the Size property to the maximum size of the underlying field. Since you can't set a MaxLength for a BoundField
    Posted to Data Presentation Controls (Forum) by CodeSalad on 2/2/2006
  • Re: Binding second stored proc to gridview

    You could try binding a nested GridView to the first by using the Eval("field", "string") one-way data-binding to create the SelectCommand property value that executes your stored proc. ex: SelectCommand='<%# Eval("user_id", "EXEC StoredProc '{0}'") %>' I have a write-up on my blog showing how to do it: http://www.kellytadams.com/mt-archives/000263.html
    Posted to Data Presentation Controls (Forum) by CodeSalad on 1/30/2006
  • Re: SQLDataSource Relational Data

    I found a cheesy way to do nested GridViews using the Eval("field", "string") method to dyno-magically generate SelectCommands for the nested datasource. It's not pretty, but if you have paging set up on the parent GridView, it won't crush the server too hard. See my expanded write-up on my blog at: http://www.kellytadams.com/mt-archives/000263.html
Page 1 of 1 (7 items)