User Profile

Collapse

Profile Sidebar

Collapse
ammu001
ammu001
Last Activity: Sep 3 '07, 11:04 AM
Joined: Oct 10 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I hope you have created a template column and added dropdown to that.
    Fine.

    Whatever data you want to load to the dropdown, capture them in different rows(and first column) of a datatable say 'dtbSiteType'

    Now , In the item command function of the datagrid, find that drop down list for each row of the datagrid in this way-
    Note: 0 is the template cell number.

    cmbSiteType = CType(e.Item.Ce lls(0).FindCont rol("cmbSiteTyp e"),...
    See more | Go to post

    Leave a comment:


  • Storing an extra blank space (which is for hidden viewstate )also stored into excel

    Response.Conten tType Excel

    I am trying to export a datagrid into an excel sheet.
    What it now does is the entire page is saved as an excel sheet in XlHtml file format. I want it in xlWorkbookNorma l format and also have to delete that extra blank space in the excel sheet. Please help out if somebody knows.



    Dim dt As DataTable = GetDataTableFro mDatabase()
    GridView2.DataS ource = dt...
    See more | Go to post

  • Loading Excel sheet into gridview(datagrid) in asp.net2.0

    I got this much information regarding excel file I want to display.
    strFileName contains the entire file path.


    Dim theWorkbook As Excel.Workbook
    theWorkbook = excelobj.Workbo oks.Open(strFil eName, 0, True, 5, "", "", True, Excel.XlPlatfor m.xlWindows, "\t", False, False, 0, True)
    Dim sheets As Excel.Sheets = theWorkbook.Wor ksheets


    ...
    See more | Go to post
No activity results to display
Show More
Working...