Hi,
First off .. I am very new to ASP.NET (.NET in general), so this may be a
very basic question.
I have traditionally used a set of style classes for html tables and the
first row in those tables. However, I am trying to use a data bound
DataGrid and can't seem to figure out how to set the class for the first
row. Any insight would be appreiciated.
Thanks in advance,
John 2 1289
The first row in a datagrid would be your header, so in <HeaderStyle> , you
can use your class.
Jeffrey Palermo
"John" <Pl****@reply.t o.group.com> wrote in message
news:cz******** ************@ne ws20.bellglobal .com... Hi,
First off .. I am very new to ASP.NET (.NET in general), so this may be a very basic question.
I have traditionally used a set of style classes for html tables and the first row in those tables. However, I am trying to use a data bound DataGrid and can't seem to figure out how to set the class for the first row. Any insight would be appreiciated.
Thanks in advance, John
Thanks Jeffery.
Just for the record & precision. It's the CssClass attribute.
<HeaderStyle CssClass="mycla ss">
</HeaderStyle>
or
<asp:DataGrid
HeaderStyle-CssClass="mycla ss"
runat="server"/>
Thanks again.
"Jeffrey Palermo [MCP]" <http://dotnetjunkies.c om/weblog/jpalermo> wrote in
message news:uZ******** ******@TK2MSFTN GP15.phx.gbl... The first row in a datagrid would be your header, so in <HeaderStyle> , you can use your class.
Jeffrey Palermo
"John" <Pl****@reply.t o.group.com> wrote in message news:cz******** ************@ne ws20.bellglobal .com... Hi,
First off .. I am very new to ASP.NET (.NET in general), so this may be a very basic question.
I have traditionally used a set of style classes for html tables and the first row in those tables. However, I am trying to use a data bound DataGrid and can't seem to figure out how to set the class for the first row. Any insight would be appreiciated.
Thanks in advance, John
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: nicver |
last post by:
I am fixing a client's Web site and for some reason an ASP class does
not want to use the variables it retrieves when it initialiases.
This is an excerpt of the class and it is enough to show what is not
working correctly:
------
Class clsAd
private pintMyData1
private pintMyData2
private pintMyData3
|
by: Tim Smith |
last post by:
In my .cs code I populate set the DataSource appropriately and I can
get my DataGrid to appear, though sorting throws an error
'dgDataGrid1__ctl1__ctl0' of type 'DataGridLinkButton' must be placed
inside a form tag
But ignoring that, with my asp:DataGrid how can I have a column of
values each with a link e.g.
<a href="Details.aspx?id=" + MY_NBR>MY_NBR</a>
|
by: Paresh |
last post by:
Hi
I need to Print asp:datagrid with formatting, which will
avoid my writing of crystal reports and can directly
print with click of a button.
I do not just want to print the current page, I want to
print all the pages in that datagrid, as I have used
paging in the datagrid (there is an underlying datatable
which holds the data).
|
by: RSB |
last post by:
Hi Everyone,
i am using a ASP: DataGrid control in the page and for each row i have a
Delete Button Column. Every thing works fine.
But now i want to add a Java script confirmation check for the user that
Delete has been selected and are they sure to continue.
I have already used this Attributes.Add (
cmdDelete.Attributes.Add("onClick", "return confirmDelete();")
)
|
by: Mark Travis |
last post by:
Hi all,
I have written a simple Web Application that displays a query result onto a
page using the ASP DataGrid.
To Digress
=======
Development information about the page is as follows
1. The database used is SqlServer 2000.
2. A Stored Procedure is dragged onto the page from the Server Explorer
| |
by: John Blair |
last post by:
Hi,
Code attached but the line that gives me an error is
MyDataGrid.Columns(2).Visible = False
It actually gives me an error for any value instead of 2 even when 9 bound
columns of data exist. How do i hide a column? Thanks.
MyConnection = New
SqlConnection("server=(local);database=pubs;Trusted_Connection=yes")
MyCommand = New SqlDataAdapter("select * from Authors",
|
by: Jeff User |
last post by:
Hi
I tryed to solve this problem over in the framework.asp group, but
still am having trouble. Hope someone here can help.
using .net 1.1, VS 2003 and C#
I have an asp.DataGrid control with a Delete button on the end of each
row. I am unable to gain access to the event when the button is
clicked.
I don't fully understand how the click gets connected to the C# code,
|
by: =?Utf-8?B?RXNlbWk=?= |
last post by:
I have a datatable that contains a number of web addresses as type nvarchar
(eg 'www.msdn.com').
I want to use these as hyperlinks in a datagrid column.
Whats the best way to do this? How can I set the NavigateURL property for
each row of a HyperLinkField column dynamically? Is this even the best way to
do it?
Thanks
|
by: getziiiiiiiiiii |
last post by:
Hi There. . I need some help in paging (which is not working) in
ASP:DATAGRID
My Data source id is a function which returns DataTable to this
datagrid.
Do i need a code behind to get the next page working?
thanks for help.
this is how my data grid look like:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |