Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

Raj Tripathi Raj Tripathi Respect My Authority!
  • How to check nullness

    In Framework 2.0 String has a new more convenient method that enables you to simultaneously test whether a String is a null reference or its value is Empty. - IsNullOrEmpty.

  • Team Build - BI & Web

    Hi, I’ve managed to build and deploy Web Service project using Team Build. In order to do it I had to manually create Target to launch AspNetCompiler task in the build.proj file

    Team Foundation Build is built on MSBuild. Check out the MSBuild Reference in the .NET Framework SDK

  • Web service Logging

    Hi, check out log4net.

    log4net is a tool to help the programmer output log statements to a variety of output targets. log4net is a port of the excellent log4j framework to the .NET runtime.

    I use it in all my "layers" including the Web Service. It's great.

  • Favorite/​Worse Comp/Sci-Fi Movie?

    My Favorite Computer Movie must be Pirates of Silicon Valley

    Some Memorable Quotes from Pirates of Silicon Valley:

    Bill Gates: There may be a few... similarities.
    Steve Jobs: Similarities? Similarities? Try theft.

    IBM Executive: The profits are in the computers themselves, not this software stuff.

    more...

  • When will sparkle be available?

    Shrage wrote:
    Does somebody know when sparkle will be available?


    Somewhere between Vista and Orcas.  ~ In about 18 Microsoft months Smiley

  • Visual Studio 2005 RC Released!

    I' ve heard that Visual Studio 2005 RC was dropped on MSDN today and will also be handed out to all of the PDC ’05 attendees.

    Is it true?

  • Datagrids in Win Forms are funky.

    qwert231 wrote:


    How is it bound to a DataView? This is how I'm binding:

    Me.dgProducts.DataSource = Me.dsPhotographers
    Me.dgProducts.DataMember = "Photographers.PhtgToProducts"



    DataSource property can accept only objects that implement IList and IListSource interfaces.
    DataTable delegates this implementation to DataTable.DefaultView. That’s why, when you set DataSource to DataTable (or DataSet and DataMember to “TableName”) DataGrid is actually working with DataView.

  • Finding Memory leaks

    Read Rico Mariani's Tracking down managed memory leaks (how to find a GC leak) Cool

  • Memory profiling of a ASP.net application

    How do you upload large file? Do you use streaming for this? Otherwise when 10 users start simultaneously uploading a file, say 100 MB – ASP.NET will consume ~1GB of RAM.

  • Datagrids in Win Forms are funky.

    I think that the problem lies in that how you do your REFRESH.

    When you Do Refresh() on the CurrencyManager it forces repopulation of the bound controls, thus loosing the current selection. – So don’t do this.

    It doesn’t matter who is the vendor of the Grid -  Microsoft, DevExpress or Infragistics all of them will behave the same way.

    In your case your Grid is bound to DataView (Which implements IBindableList interface).

    The IBindableList interface declares the ListChanged event which is used by the Grid  to update itself when bound data is changed.
    ListChanged event can be raised with different ListChangedType as argument. When ListChangedType is set to Reset – The Grid looses its current selection and selects the first row.

    CurrencyManager.Refresh()
    {
        //some code
        RaiseListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1));
    }


    I hope this helps you.

    I personally I never bind a dataset to a grid. I always create custom collections that support ITypedList and IBindableList interfaces.