473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Formatting/Display in a DataGrid

Hi,

Is there anyway I can make a column thats databound into a hyperlink to
navigate to another page?
Suppose I have 3 columns: SortOrder, Description, UserName

for eg:
<Columns>
<asp:HyperLinkColumn Text="View" DataNavigateUrlField="UserId"
DataNavigateUrlFormatString="ViewInfo.aspx?id={0}" >
<HeaderStyle BackColor="#CCCCCC"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:HyperLinkColumn>
<asp:BoundColumn DataField="SortOrder" HeaderText="Sort Order"
SortExpression="SortOrder">
<ItemStyle HorizontalAlign="Center" Width="12%"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Description" HeaderText="Description">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="UserName" HeaderText="UserName"
SortExpression="UserName">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
</Columns>
Instead of having HyperLinkColumn with "View" as text, how can I make
"Description" or whatever column I want
into the hyperlink (with the relevant info to display) and navigate it to
"ViewInfo.aspx?id={0}
please Advice,
Stephen
May 23 '06 #1
5 2482
using templates :-)

templates give you all teh free in the world to add something into the cell
in a row...

after the last </asp:BoundColumn>
add this for example: (just copy/paste)

<asp:TemplateField>
<ItemTemplate>
<%#Eval("Description")%> <br />
<asp:HyperLink runat="server" id="myLink" text="more..."
NavigateUrl='<%# Eval("UserId", "ViewInfo.aspx?id={0}") %>' />
</ItemTemplate>
</asp:TemplateField>

and then tell me the result ;-)

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Stephen" <st********@hotmail.com> escreveu na mensagem
news:OF**************@TK2MSFTNGP02.phx.gbl...
Hi,

Is there anyway I can make a column thats databound into a hyperlink to
navigate to another page?
Suppose I have 3 columns: SortOrder, Description, UserName

for eg:
<Columns>
<asp:HyperLinkColumn Text="View" DataNavigateUrlField="UserId"
DataNavigateUrlFormatString="ViewInfo.aspx?id={0}" >
<HeaderStyle BackColor="#CCCCCC"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:HyperLinkColumn>
<asp:BoundColumn DataField="SortOrder" HeaderText="Sort Order"
SortExpression="SortOrder">
<ItemStyle HorizontalAlign="Center" Width="12%"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Description" HeaderText="Description">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="UserName" HeaderText="UserName"
SortExpression="UserName">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
</Columns>
Instead of having HyperLinkColumn with "View" as text, how can I make
"Description" or whatever column I want
into the hyperlink (with the relevant info to display) and navigate it to
"ViewInfo.aspx?id={0}
please Advice,
Stephen

May 23 '06 #2
Hi Bruno,

Thanks for the info but..... I tried your code suggestion but it still gives
me this error:

<Columns>
<asp:HyperLinkColumn Text="View" DataNavigateUrlField="UserId"
DataNavigateUrlFormatString="ViewInfo.aspx?id={0}" >
<HeaderStyle BackColor="#CCCCCC"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:HyperLinkColumn>
<asp:BoundColumn DataField="SortOrder" HeaderText="Sort Order"
SortExpression="SortOrder">
<ItemStyle HorizontalAlign="Center" Width="12%"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Description" HeaderText="Description">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="UserName" HeaderText="UserName"
SortExpression="UserName">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:Templatecolumn>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Description") %>
<br />
<asp:HyperLink runat="server" id="myLink" text="more..." NavigateUrl='<%#
DataBinder.Eval("Ruleid", "ViewInfo.aspx?id={0}") %>' />
</ItemTemplate>
</asp:Templatecolumn>
</Columns>
gives me this error:

DataBinder.Eval: 'System.String' does not contain a property with the name
ViewInfo.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Web.HttpException: DataBinder.Eval:
'System.String' does not contain a property with the name ViewInfo.

Source Error:
<%# DataBinder.Eval(Container.DataItem, "Description") %>
<br />
<asp:HyperLink runat="server" id="myLink" text="more..." NavigateUrl='<%#
DataBinder.Eval("Ruleid", "ViewInfo.aspx?id={0}") %>' />
</ItemTemplate>
</asp:Templatecolumn>

"Bruno Alexandre" <br*********@gmail.com> wrote in message
news:e8**************@TK2MSFTNGP02.phx.gbl...
using templates :-)

templates give you all teh free in the world to add something into the cell in a row...

after the last </asp:BoundColumn>
add this for example: (just copy/paste)

<asp:TemplateField>
<ItemTemplate>
<%#Eval("Description")%> <br />
<asp:HyperLink runat="server" id="myLink" text="more..."
NavigateUrl='<%# Eval("UserId", "ViewInfo.aspx?id={0}") %>' />
</ItemTemplate>
</asp:TemplateField>

and then tell me the result ;-)

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Stephen" <st********@hotmail.com> escreveu na mensagem
news:OF**************@TK2MSFTNGP02.phx.gbl...
Hi,

Is there anyway I can make a column thats databound into a hyperlink to
navigate to another page?
Suppose I have 3 columns: SortOrder, Description, UserName

for eg:
<Columns>
<asp:HyperLinkColumn Text="View" DataNavigateUrlField="UserId"
DataNavigateUrlFormatString="ViewInfo.aspx?id={0}" >
<HeaderStyle BackColor="#CCCCCC"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:HyperLinkColumn>
<asp:BoundColumn DataField="SortOrder" HeaderText="Sort Order"
SortExpression="SortOrder">
<ItemStyle HorizontalAlign="Center" Width="12%"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Description" HeaderText="Description">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="UserName" HeaderText="UserName"
SortExpression="UserName">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
</Columns>
Instead of having HyperLinkColumn with "View" as text, how can I make
"Description" or whatever column I want
into the hyperlink (with the relevant info to display) and navigate it to "ViewInfo.aspx?id={0}
please Advice,
Stephen


May 23 '06 #3
remove the DataBinder... just Eval("name") like my example

or Eval("string{0}", "name")

or the same using Bind("name") if you nees to pass the value!

it's the way to do in ASP.NET 2.0

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Stephen" <st********@hotmail.com> escreveu na mensagem
news:Oc**************@TK2MSFTNGP04.phx.gbl...
Hi Bruno,

Thanks for the info but..... I tried your code suggestion but it still
gives
me this error:

<Columns>
<asp:HyperLinkColumn Text="View" DataNavigateUrlField="UserId"
DataNavigateUrlFormatString="ViewInfo.aspx?id={0}" >
<HeaderStyle BackColor="#CCCCCC"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:HyperLinkColumn>
<asp:BoundColumn DataField="SortOrder" HeaderText="Sort Order"
SortExpression="SortOrder">
<ItemStyle HorizontalAlign="Center" Width="12%"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Description" HeaderText="Description">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="UserName" HeaderText="UserName"
SortExpression="UserName">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:Templatecolumn>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Description") %>
<br />
<asp:HyperLink runat="server" id="myLink" text="more..." NavigateUrl='<%#
DataBinder.Eval("Ruleid", "ViewInfo.aspx?id={0}") %>' />
</ItemTemplate>
</asp:Templatecolumn>
</Columns>
gives me this error:

DataBinder.Eval: 'System.String' does not contain a property with the name
ViewInfo.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Web.HttpException: DataBinder.Eval:
'System.String' does not contain a property with the name ViewInfo.

Source Error:
<%# DataBinder.Eval(Container.DataItem, "Description") %>
<br />
<asp:HyperLink runat="server" id="myLink" text="more..." NavigateUrl='<%#
DataBinder.Eval("Ruleid", "ViewInfo.aspx?id={0}") %>' />
</ItemTemplate>
</asp:Templatecolumn>

"Bruno Alexandre" <br*********@gmail.com> wrote in message
news:e8**************@TK2MSFTNGP02.phx.gbl...
using templates :-)

templates give you all teh free in the world to add something into the

cell
in a row...

after the last </asp:BoundColumn>
add this for example: (just copy/paste)

<asp:TemplateField>
<ItemTemplate>
<%#Eval("Description")%> <br />
<asp:HyperLink runat="server" id="myLink" text="more..."
NavigateUrl='<%# Eval("UserId", "ViewInfo.aspx?id={0}") %>' />
</ItemTemplate>
</asp:TemplateField>

and then tell me the result ;-)

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Stephen" <st********@hotmail.com> escreveu na mensagem
news:OF**************@TK2MSFTNGP02.phx.gbl...
> Hi,
>
> Is there anyway I can make a column thats databound into a hyperlink to
> navigate to another page?
> Suppose I have 3 columns: SortOrder, Description, UserName
>
> for eg:
> <Columns>
> <asp:HyperLinkColumn Text="View" DataNavigateUrlField="UserId"
> DataNavigateUrlFormatString="ViewInfo.aspx?id={0}" >
> <HeaderStyle BackColor="#CCCCCC"></HeaderStyle>
> <ItemStyle HorizontalAlign="Center"></ItemStyle>
> </asp:HyperLinkColumn>
> <asp:BoundColumn DataField="SortOrder" HeaderText="Sort Order"
> SortExpression="SortOrder">
> <ItemStyle HorizontalAlign="Center" Width="12%"></ItemStyle>
> </asp:BoundColumn>
> <asp:BoundColumn DataField="Description" HeaderText="Description">
> <ItemStyle HorizontalAlign="Center"></ItemStyle>
> </asp:BoundColumn>
> <asp:BoundColumn DataField="UserName" HeaderText="UserName"
> SortExpression="UserName">
> <ItemStyle HorizontalAlign="Center"></ItemStyle>
> </asp:BoundColumn>
> </Columns>
>
>
> Instead of having HyperLinkColumn with "View" as text, how can I make
> "Description" or whatever column I want
> into the hyperlink (with the relevant info to display) and navigate it to > "ViewInfo.aspx?id={0}
>
>
> please Advice,
> Stephen
>
>



May 23 '06 #4

Thanks for the reply... I am using v1.x
anyways I tried it this way and it worked but would welcome suggestion from
you too

<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Description") %>
<br />
<asp:HyperLink runat="server" id="myLink" text="more..." NavigateUrl='<%#
"ViewInfo.aspx.aspx?id=" & Container.DataItem("UserId") %>' />
</ItemTemplate>

Thanks,
Stephen
"Bruno Alexandre" <br*********@gmail.com> wrote in message
news:ud**************@TK2MSFTNGP04.phx.gbl...
remove the DataBinder... just Eval("name") like my example

or Eval("string{0}", "name")

or the same using Bind("name") if you nees to pass the value!

it's the way to do in ASP.NET 2.0

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Stephen" <st********@hotmail.com> escreveu na mensagem
news:Oc**************@TK2MSFTNGP04.phx.gbl...
Hi Bruno,

Thanks for the info but..... I tried your code suggestion but it still
gives
me this error:

<Columns>
<asp:HyperLinkColumn Text="View" DataNavigateUrlField="UserId"
DataNavigateUrlFormatString="ViewInfo.aspx?id={0}" >
<HeaderStyle BackColor="#CCCCCC"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:HyperLinkColumn>
<asp:BoundColumn DataField="SortOrder" HeaderText="Sort Order"
SortExpression="SortOrder">
<ItemStyle HorizontalAlign="Center" Width="12%"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Description" HeaderText="Description">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="UserName" HeaderText="UserName"
SortExpression="UserName">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:Templatecolumn>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Description") %>
<br />
<asp:HyperLink runat="server" id="myLink" text="more..." NavigateUrl='<%# DataBinder.Eval("Ruleid", "ViewInfo.aspx?id={0}") %>' />
</ItemTemplate>
</asp:Templatecolumn>
</Columns>
gives me this error:

DataBinder.Eval: 'System.String' does not contain a property with the name ViewInfo.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Web.HttpException: DataBinder.Eval:
'System.String' does not contain a property with the name ViewInfo.

Source Error:
<%# DataBinder.Eval(Container.DataItem, "Description") %>
<br />
<asp:HyperLink runat="server" id="myLink" text="more..." NavigateUrl='<%# DataBinder.Eval("Ruleid", "ViewInfo.aspx?id={0}") %>' />
</ItemTemplate>
</asp:Templatecolumn>

"Bruno Alexandre" <br*********@gmail.com> wrote in message
news:e8**************@TK2MSFTNGP02.phx.gbl...
using templates :-)

templates give you all teh free in the world to add something into the

cell
in a row...

after the last </asp:BoundColumn>
add this for example: (just copy/paste)

<asp:TemplateField>
<ItemTemplate>
<%#Eval("Description")%> <br />
<asp:HyperLink runat="server" id="myLink" text="more..."
NavigateUrl='<%# Eval("UserId", "ViewInfo.aspx?id={0}") %>' /> </ItemTemplate>
</asp:TemplateField>

and then tell me the result ;-)

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Stephen" <st********@hotmail.com> escreveu na mensagem
news:OF**************@TK2MSFTNGP02.phx.gbl...
> Hi,
>
> Is there anyway I can make a column thats databound into a hyperlink to > navigate to another page?
> Suppose I have 3 columns: SortOrder, Description, UserName
>
> for eg:
> <Columns>
> <asp:HyperLinkColumn Text="View" DataNavigateUrlField="UserId"
> DataNavigateUrlFormatString="ViewInfo.aspx?id={0}" >
> <HeaderStyle BackColor="#CCCCCC"></HeaderStyle>
> <ItemStyle HorizontalAlign="Center"></ItemStyle>
> </asp:HyperLinkColumn>
> <asp:BoundColumn DataField="SortOrder" HeaderText="Sort Order"
> SortExpression="SortOrder">
> <ItemStyle HorizontalAlign="Center" Width="12%"></ItemStyle>
> </asp:BoundColumn>
> <asp:BoundColumn DataField="Description" HeaderText="Description">
> <ItemStyle HorizontalAlign="Center"></ItemStyle>
> </asp:BoundColumn>
> <asp:BoundColumn DataField="UserName" HeaderText="UserName"
> SortExpression="UserName">
> <ItemStyle HorizontalAlign="Center"></ItemStyle>
> </asp:BoundColumn>
> </Columns>
>
>
> Instead of having HyperLinkColumn with "View" as text, how can I make
> "Description" or whatever column I want
> into the hyperlink (with the relevant info to display) and navigate
it to
> "ViewInfo.aspx?id={0}
>
>
> please Advice,
> Stephen
>
>



May 23 '06 #5
I was using 2.0 - I passed directly from classic asp to asp.net 2.0, so I
never did anything in 1.x ...

sorry,

but if it works... better :-)

I just love 2.0 version ;-) and for that GridView is really nicer to work
than the old datagrid (seeing all the examples I see in both controls)

you can use the template to show normal rows (itens), the update row
(EditItem), the select row, etc...
check for templateItem under datagrid in your Help file

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Stephen" <st********@hotmail.com> escreveu na mensagem
news:uN**************@TK2MSFTNGP05.phx.gbl...

Thanks for the reply... I am using v1.x
anyways I tried it this way and it worked but would welcome suggestion
from
you too

<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Description") %>
<br />
<asp:HyperLink runat="server" id="myLink" text="more..." NavigateUrl='<%#
"ViewInfo.aspx.aspx?id=" & Container.DataItem("UserId") %>' />
</ItemTemplate>

Thanks,
Stephen
"Bruno Alexandre" <br*********@gmail.com> wrote in message
news:ud**************@TK2MSFTNGP04.phx.gbl...
remove the DataBinder... just Eval("name") like my example

or Eval("string{0}", "name")

or the same using Bind("name") if you nees to pass the value!

it's the way to do in ASP.NET 2.0

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Stephen" <st********@hotmail.com> escreveu na mensagem
news:Oc**************@TK2MSFTNGP04.phx.gbl...
> Hi Bruno,
>
> Thanks for the info but..... I tried your code suggestion but it still
> gives
> me this error:
>
> <Columns>
> <asp:HyperLinkColumn Text="View" DataNavigateUrlField="UserId"
> DataNavigateUrlFormatString="ViewInfo.aspx?id={0}" >
> <HeaderStyle BackColor="#CCCCCC"></HeaderStyle>
> <ItemStyle HorizontalAlign="Center"></ItemStyle>
> </asp:HyperLinkColumn>
> <asp:BoundColumn DataField="SortOrder" HeaderText="Sort Order"
> SortExpression="SortOrder">
> <ItemStyle HorizontalAlign="Center" Width="12%"></ItemStyle>
> </asp:BoundColumn>
> <asp:BoundColumn DataField="Description" HeaderText="Description">
> <ItemStyle HorizontalAlign="Center"></ItemStyle>
> </asp:BoundColumn>
> <asp:BoundColumn DataField="UserName" HeaderText="UserName"
> SortExpression="UserName">
> <ItemStyle HorizontalAlign="Center"></ItemStyle>
> </asp:BoundColumn>
> <asp:Templatecolumn>
> <ItemTemplate>
> <%# DataBinder.Eval(Container.DataItem, "Description") %>
> <br />
> <asp:HyperLink runat="server" id="myLink" text="more..." NavigateUrl='<%# > DataBinder.Eval("Ruleid", "ViewInfo.aspx?id={0}") %>' />
> </ItemTemplate>
> </asp:Templatecolumn>
> </Columns>
>
>
> gives me this error:
>
> DataBinder.Eval: 'System.String' does not contain a property with the name > ViewInfo.
> Description: An unhandled exception occurred during the execution of
> the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
>
> Exception Details: System.Web.HttpException: DataBinder.Eval:
> 'System.String' does not contain a property with the name ViewInfo.
>
> Source Error:
>
>
> <%# DataBinder.Eval(Container.DataItem, "Description") %>
> <br />
> <asp:HyperLink runat="server" id="myLink" text="more..." NavigateUrl='<%# > DataBinder.Eval("Ruleid", "ViewInfo.aspx?id={0}") %>' />
> </ItemTemplate>
> </asp:Templatecolumn>
>
>
>
>
>
> "Bruno Alexandre" <br*********@gmail.com> wrote in message
> news:e8**************@TK2MSFTNGP02.phx.gbl...
>> using templates :-)
>>
>> templates give you all teh free in the world to add something into the
> cell
>> in a row...
>>
>> after the last </asp:BoundColumn>
>> add this for example: (just copy/paste)
>>
>> <asp:TemplateField>
>> <ItemTemplate>
>> <%#Eval("Description")%> <br />
>> <asp:HyperLink runat="server" id="myLink" text="more..."
>> NavigateUrl='<%# Eval("UserId", "ViewInfo.aspx?id={0}") %>' /> >> </ItemTemplate>
>> </asp:TemplateField>
>>
>> and then tell me the result ;-)
>>
>> --
>>
>> Bruno Alexandre
>> (a Portuguese in Københanv, Danmark)
>>
>>
>> "Stephen" <st********@hotmail.com> escreveu na mensagem
>> news:OF**************@TK2MSFTNGP02.phx.gbl...
>> > Hi,
>> >
>> > Is there anyway I can make a column thats databound into a hyperlink to >> > navigate to another page?
>> > Suppose I have 3 columns: SortOrder, Description, UserName
>> >
>> > for eg:
>> > <Columns>
>> > <asp:HyperLinkColumn Text="View" DataNavigateUrlField="UserId"
>> > DataNavigateUrlFormatString="ViewInfo.aspx?id={0}" >
>> > <HeaderStyle BackColor="#CCCCCC"></HeaderStyle>
>> > <ItemStyle HorizontalAlign="Center"></ItemStyle>
>> > </asp:HyperLinkColumn>
>> > <asp:BoundColumn DataField="SortOrder" HeaderText="Sort Order"
>> > SortExpression="SortOrder">
>> > <ItemStyle HorizontalAlign="Center" Width="12%"></ItemStyle>
>> > </asp:BoundColumn>
>> > <asp:BoundColumn DataField="Description" HeaderText="Description">
>> > <ItemStyle HorizontalAlign="Center"></ItemStyle>
>> > </asp:BoundColumn>
>> > <asp:BoundColumn DataField="UserName" HeaderText="UserName"
>> > SortExpression="UserName">
>> > <ItemStyle HorizontalAlign="Center"></ItemStyle>
>> > </asp:BoundColumn>
>> > </Columns>
>> >
>> >
>> > Instead of having HyperLinkColumn with "View" as text, how can I
>> > make
>> > "Description" or whatever column I want
>> > into the hyperlink (with the relevant info to display) and navigate it > to
>> > "ViewInfo.aspx?id={0}
>> >
>> >
>> > please Advice,
>> > Stephen
>> >
>> >
>>
>>
>
>



May 23 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chumley the Walrus | last post by:
Inside a datagrid that has editcommandcolumns and such, I'm able to format a date variable with DataFormatString ="{0:d}" to display a properly formatted date of 7/14/2004 instead of 7/14/2004...
5
by: Jeff Cook | last post by:
Hi I have a DataGrid that I am using to display a .xml file (that has a schema in a .xsd), like this:- ds.ReadXmlSchema(sDataPath + "Data.xsd"); ds.ReadXml(sDataPath + "Data.xml",...
7
by: Matthew Wieder | last post by:
Hi - I have a datagrid that has a black header and the rows alternate white and gray. The problem is that until items are added to the grid, the grid appears as a large black rectangle, which is...
3
by: Roy | last post by:
Here's my problem for the curious consumption of the group mind... I have an embedded datagrid which works fine. The child grid is nested within the parent using a templatecolumn tag. Using the TR...
4
by: hope | last post by:
Hi, How can I format a string field using Data Formatting Expression property in datagrid? For example: format last name from BROWN to Brown. Thanks
0
by: KentEMon | last post by:
I have a field in my SQL database table which has phone numbers stored with no "-" character. That is, 4540090 rather than 454-0090. I have a webform datagrid and wish to display these values in a...
2
by: John Dann | last post by:
I've got what seems to be a common problem with the DataGrid control - I want to display a dataset one of whose columns (always the first column) is a datetime column. But only the date displays...
3
by: Horselover Fat | last post by:
Hi, I have a column in a database that holds elapsed time in milliseconds and I want to display that column in a DataGrid in a specific format (d.hh:mm:ss.fff). However, the closest I can get...
3
by: daz_oldham | last post by:
I am populating my datagrid 'by hand' by that I mean that i am not using the wizard! What I would like to know, is if I can format my colums - for example if I have a column that is returning...
2
by: =?Utf-8?B?Uml0YUc=?= | last post by:
Hello. I could not find a Web discussion group (only saw Web Services) so am posting my question here. I have a C# Web application that has a form with a datagrid. One of the columns of the data...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
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,...
0
Oralloy
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.