User Profile

Collapse

Profile Sidebar

Collapse
Narz1986
Narz1986
Last Activity: May 10 '10, 04:05 PM
Joined: Dec 2 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Narz1986
    replied to how to acess form control from class
    please be a little clearer........ .so i would guess that u want show your output in the datagrid view by callin a class function that u have created to get the data.....if this is so...u can change the functions return type to dataset or datatable and bind that to the datagrid view....
    Code:
    datagridview1.datasource=//your class function name
    See more | Go to post

    Leave a comment:


  • Narz1986
    replied to Export Data from Datagrid to Excel
    wat r u using?
    if u r binding the datagrid to a datatable or a dataset
    use this
    Code:
    public static void WriteExcel(DataTable dt_Excel)
            {
                StringBuilder swColSb = new StringBuilder();
                using (StreamWriter sw2Excel = File.CreateText(FileName.xls))
                {
                    //get the Columns of the DataTable in the 1st Line
                    for (int i
    ...
    See more | Go to post
    Last edited by Frinavale; Mar 30 '09, 01:14 PM. Reason: Added [code] tags. Please post code in [code] [/code] tags

    Leave a comment:


  • Narz1986
    replied to c# memory usage
    in .NET
    thanks DeepBlue,
    i wil look into it....



    regards,
    narz1986
    See more | Go to post

    Leave a comment:


  • Narz1986
    started a topic c# memory usage
    in .NET

    c# memory usage

    Hi,
    i have been searching weather there is a way of using the hard disk as memory instead of ram memory for my c# windows application....

    Anyone has any info on this please spare ur time...
    thank you,
    Reagrds
    Narz1986
    See more | Go to post

  • Narz1986
    started a topic cross tabulation

    cross tabulation

    hi.....i am trying to create a cross table report...but i m not getting any idea about how to do so...
    here is my data

    i hve a tabe with three columns

    date Category unit
    1/1/2008 a 2
    1/2/2008 a 3
    1/3/2008 a 8

    i want the cross table to have the output as follows


    date ...
    See more | Go to post

  • Narz1986
    replied to cross tables
    Thanks a lot....it got me started...
    regards
    narz1986
    See more | Go to post

    Leave a comment:


  • Narz1986
    started a topic cross tables

    cross tables

    hi.
    i m fairly new to sql and i need to do some cross table .....can somebody please tel how to do a simple cross tabulation....a ny help will be really greatfulll
    thank you
    See more | Go to post

  • Narz1986
    started a topic export from datagrid to excel in c#

    export from datagrid to excel in c#

    hi...i m trying to export data from the datagrid to excel...here is my code

    Code:
    HttpContext.Current.Response.Clear();
    HttpContext.Current.Response.AddHeader("content-disposition", "attachment;filename=" + exportfile.FileName + "");
    HttpContext.Current.Response.Charset = "";
    HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
    HttpContext.Current.Response.ContentType
    ...
    See more | Go to post
    Last edited by Frinavale; Jan 21 '09, 04:05 PM. Reason: Moved to ASP.NET Answers from C# and added [code] tags

  • yes Oledb provider for excel.......
    could u tel me if there is any other method.....
    See more | Go to post

    Leave a comment:


  • importing data from an excel sheet to sql server express using c#

    hi....i m fairly new to c#.net...i m trying to import data from an excel file to sql server using c#.....below here is my code....when i m executing this code i m getting an exception "ODBC CALL FAILED" i m not able to figure out where i hve gone wrong...so if any one could guide me i wil b thankful....




    private void Import_btn_Clic k(object sender, EventArgs e)
    {
    ...
    See more | Go to post
No activity results to display
Show More
Working...