Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 20th, 2005, 01:58 AM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default URGENT-How To Format Datagrid in ASP.NET?

Hello all,
i am Arun.K.S.
i have a doubt in datagrid.
i had displayed some records in datagrid in asp.net page using C#
as code behind. i want to select a particular column
in the grid and all the records in that column should be selected.
and the selected records are to be formated like bold, underline
italics etc. my problem is specific and only send me a soln as code in this forum or mail me to [email protected] or to [email protected].

expect this code in urgent.
 
Old January 20th, 2005, 02:56 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Look at the SelectedItemStyle of the datagrid.

It allows you to customize the appearance of the item that is currently selected. You can use the SelectedIndex to select an item in the grid.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 21st, 2005, 07:58 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

And you can set the style of a particular column based on the controls that are in the column and the column properties.

What do you mean by "all the records in that column should be selected"? Doesn't this mean that all the records in the grid are selected?

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with String Format(ASP.NET C#) richie86 ASP.NET 1.0 and 1.1 Basics 3 September 20th, 2007 07:43 PM
asp.net vs classic asp "URGENT" naeem_ul_hussan Classic ASP Professional 1 August 1st, 2007 03:14 PM
Urgent! mail account in ASP.net using C#.net vicman BOOK: ASP.NET Website Programming Problem-Design-Solution 0 February 18th, 2005 08:38 AM
Setting date format from ASP.NET jonashilmersson Crystal Reports 0 November 14th, 2003 04:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.