PC Review


Reply
Thread Tools Rate Thread

customize some rows of dataset?

 
 
Michael Appelmans
Guest
Posts: n/a
 
      10th Jul 2004

I need to display a list of image names from a database and highlight
the row if the image does not exist in a directory (or the name in the
database was a typo)

Can anyone direct me to an example showing how to customize rows (not
all, just ones that meet a specific criteria) in a dataset?

Would it be better to load the dataset and then read through the dataset
and set row properties or to have an event function that triggers as
each row is loaded and modifies the row's properties?

Thanks for any help with this.

Michael

 
Reply With Quote
 
 
 
 
Norman Yuan
Guest
Posts: n/a
 
      10th Jul 2004
You do not "customize' datarow in datatable (dtaset), they are only stay in
memory, not visible. You display data in dataset through Win form
controls/web controls, such as Win form datagrid/web form datagrid. So, you
customize these controls instead.

If it is Win form app, you look at overriding DataGridColumn's Paint()
method, for web app, you look at DataGrid's ItemCreated or ItemBound event
handler. In those method, when each row (item) is to be drawn on the screen
or before rendering as HTML page, you check the row/item's value and change
its color/font accordingly. No change on the data in dataset is needed.

"Michael Appelmans" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> I need to display a list of image names from a database and highlight
> the row if the image does not exist in a directory (or the name in the
> database was a typo)
>
> Can anyone direct me to an example showing how to customize rows (not
> all, just ones that meet a specific criteria) in a dataset?
>
> Would it be better to load the dataset and then read through the dataset
> and set row properties or to have an event function that triggers as
> each row is loaded and modifies the row's properties?
>
> Thanks for any help with this.
>
> Michael
>



 
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
Customize number of rows and columns =?Utf-8?B?VHVja2xhbmQ=?= Microsoft Excel Misc 3 8th May 2007 11:25 AM
DataSet has no rows when proc is returning rows?? teewebco Microsoft ADO .NET 3 17th Nov 2006 02:07 AM
How do I customize the X-axis in excel to match my dataset? =?Utf-8?B?Y2F0aHk=?= Microsoft Excel Charting 1 14th Jan 2005 01:25 AM
customize xml from dataset Andrew Microsoft ADO .NET 1 21st Sep 2004 12:18 AM
Re: copy/move rows from a dataset to another dataset? Stephen Muecke Microsoft ADO .NET 1 22nd Jul 2003 04:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:08 AM.