Results 1 to 6 of 6

Thread: [RESOLVED] [02/03] Add Image in Datagrid Header

  1. #1

    Thread Starter
    Hyperactive Member Coool's Avatar
    Join Date
    Feb 2006
    Location
    System.Coool
    Posts
    333

    Resolved [RESOLVED] [02/03] Add Image in Datagrid Header

    Hi all,

    I want to display Image in Datagrid header for sorting. this is the requirement of client. so i can't even think other logic.

    Now is there any propert through which i can access datagrid header column ??
    If yes then how ??

    plz, i need it urgent!!!
    I am using .NET 2010 with Windows 7

  2. #2

    Thread Starter
    Hyperactive Member Coool's Avatar
    Join Date
    Feb 2006
    Location
    System.Coool
    Posts
    333

    Re: [02/03] Add Image in Datagrid Header

    Ok i did it but i had to take template column saperated for each item..
    I am using .NET 2010 with Windows 7

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] [02/03] Add Image in Datagrid Header

    That is essentially how you would do it. You could've also, I believe, directly accessed the header in the ItemDataBound event of the DataGrid and inserted the image there.

  4. #4

    Thread Starter
    Hyperactive Member Coool's Avatar
    Join Date
    Feb 2006
    Location
    System.Coool
    Posts
    333

    Re: [RESOLVED] [02/03] Add Image in Datagrid Header

    Sorry for late posting,

    actually i wanted to add the image in When Sort event fire for Column... I know and i did added the control in header but when i rebind the datagrid somehow image is disappeared. (May be reference of e missed up after databinding.)

    I still want if somebody help me in this issue.

    If i can convert Datagrid column into DataGridItem then I am sure I can did it without Template column.

    I need to convert the Column to DatagridItem using Following reference of the Column

    DatagridName.Columns(0)

    ANY SUGGESTION ??
    I am using .NET 2010 with Windows 7

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] [02/03] Add Image in Datagrid Header

    DatagridName.Columns(0).Items(4)

  6. #6

    Thread Starter
    Hyperactive Member Coool's Avatar
    Join Date
    Feb 2006
    Location
    System.Coool
    Posts
    333

    Re: [RESOLVED] [02/03] Add Image in Datagrid Header

    Sorry but Item is not available in Column. u can check it.
    I am using .NET 2010 with Windows 7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width