PC Review


Reply
Thread Tools Rate Thread

Adding Image in the DataGrid

 
 
Rasheed
Guest
Posts: n/a
 
      29th Nov 2007
Hi All,
i am using .net 1.1 and i want to add an Image in the DataGrid
(using C# in WinForm not in WebForm). so can any body please tell me,
how to do.

i have found an artical in forum i.e
http://www.codeguru.com/Csharp/Cshar...cle.php/c4783/

but the here are some understanding problems with two statements:

1) PropertyDescriptorCollection pcol =
this.BindingContext[DBDataSet,
"Test"].GetItemProperties();

// create column style for a text column
2) GridTextColumn = new DataGridTextBoxColumn(pcol["Description"]);

DBDataSet :: I am not using any database to store the Images.
DataGridTextBoxColumn::is a derived a class and special thing is
override of Paint()
class.

if i have derived a class with "DataGridColumnStyle" class. so what i
have to pass to this Derived class Constructors because i dont have
any DBDataSet or PCOL.

next points : there is some logic in Paint(). how i have to go with
this. Becuase all the images are process here only.


So can any body please do the needfull help with above solution or
with another solution.


regards
RS.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Drivers to WinXP WIM Image via System Image Manager Ben Windows XP Setup 3 29th Oct 2007 09:14 PM
Adding value to datagrid Cell while Adding a New Row in VB.Net 2005 Luqman Microsoft VB .NET 0 18th Apr 2007 03:07 PM
Preview image before adding to image control Tom Microsoft Access Form Coding 4 23rd Feb 2005 07:54 AM
Adding an logo-image/tekst to an existing image. Richard Microsoft ASP .NET 6 22nd Jun 2004 09:34 AM
Datagrid: Showing and Hiding and image in a datagrid cell. Linda Mason Microsoft C# .NET 0 24th Mar 2004 10:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:31 AM.