Datagrid Image refresh Problem .NET.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shahjapan
    New Member
    • Apr 2007
    • 63

    Datagrid Image refresh Problem .NET.

    Hello,

    I have used datagrid component in my form.
    in this datagrid I have a column which contains Images,

    but when form is repainted, this images becomes garbeled and overlapps eachother sometimes contains, background of behind window.

    what to do ? any idea ?
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Is the DataGrid's EnableViewState property set to false? Otherwise the data is stored in the Viewstate field (which can be very expensive in terms of HTML response size) and then is repopulated upon postback. It sounds like you're rebinding your data to the DG. HTH.

    Comment

    • shahjapan
      New Member
      • Apr 2007
      • 63

      #3
      its a window based Application not ASP.NET

      Originally posted by kenobewan
      Is the DataGrid's EnableViewState property set to false? Otherwise the data is stored in the Viewstate field (which can be very expensive in terms of HTML response size) and then is repopulated upon postback. It sounds like you're rebinding your data to the DG. HTH.

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Please state your platform when you post to help our experts answer your problem. Thanks.

        Comment

        • shahjapan
          New Member
          • Apr 2007
          • 63

          #5
          I got the solution, problem is that I have used .png Images.
          when I converted it to .jpg or .bmp it works.

          because .png and .gif Images are Transpert in nature, so thats the mistake.

          Originally posted by kenobewan
          Please state your platform when you post to help our experts answer your problem. Thanks.

          Regards,
          Japan Shah

          Comment

          Working...