Hi all,
I created one table with following structure, and bound the same with a
DataGird.
But I am not able to see any column which is having 'uniqueidentifi er' as
datatype.
Name DataType
ID uniqueidentifie r
UID uniqueidentifie r
CatID uniqueidentifie r
CustName Varchar
CustAdd Varchar
A help will be appreciated.
Shailesh 3 2188
On Wed, 18 Aug 2004 18:03:10 +0530, SMG wrote: Hi all, I created one table with following structure, and bound the same with a DataGird.
But I am not able to see any column which is having 'uniqueidentifi er' as datatype.
Name DataType ID uniqueidentifie r UID uniqueidentifie r CatID uniqueidentifie r CustName Varchar CustAdd Varchar
A help will be appreciated.
Shailesh
uniqueidentifie r is stored as System.Guid in a dataset you should call a
..Tostring method somewhere in your design.
- Oytun YILMAZ
No it doesn't work...
I created another table with just a single uniqueidentifie r field,
Name DataType
ID uniqueidentifie r
CustName Varchar
CustAdd Varchar
and in itemdatabound of datagrid i wrote following lines
private void DataGrid1_ItemD ataBound(object sender, System.Web.UI.W ebControls.Data GridItemEventAr gs e)
{
e.Item.Cells[0].Text = e.Item.Cells[0].Text.ToString( );
}
It still doesn't show the first column....
// is it the right place to write the code.. and what ever i have written is that OK? or something else also i have to write.
thanks Oytun for prompt reply...
Regards,
Shailesh
"Oytun YILMAZ" <oyilmaz@_REMOV E_veripark.com> wrote in message news:1f******** *************** *******@40tude. net...
On Wed, 18 Aug 2004 18:03:10 +0530, SMG wrote: Hi all, I created one table with following structure, and bound the same with a DataGird. But I am not able to see any column which is having 'uniqueidentifi er' as datatype. Name DataType ID uniqueidentifie r UID uniqueidentifie r CatID uniqueidentifie r CustName Varchar CustAdd Varchar A help will be appreciated. Shailesh
uniqueidentifie r is stored as System.Guid in a dataset you should call a
.Tostring method somewhere in your design.
- Oytun YILMAZ
On Wed, 18 Aug 2004 18:52:44 +0530, SMG wrote: No it doesn't work...
I created another table with just a single uniqueidentifie r field, Name DataType ID uniqueidentifie r CustName Varchar CustAdd Varchar
and in itemdatabound of datagrid i wrote following lines private void DataGrid1_ItemD ataBound(object sender, System.Web.UI.W ebControls.Data GridItemEventAr gs e) { e.Item.Cells[0].Text = e.Item.Cells[0].Text.ToString( ); }
It still doesn't show the first column.... // is it the right place to write the code.. and what ever i have written is that OK? or something else also i have to write.
thanks Oytun for prompt reply...
Regards, Shailesh "Oytun YILMAZ" <oyilmaz@_REMOV E_veripark.com> wrote in message news:1f******** *************** *******@40tude. net... On Wed, 18 Aug 2004 18:03:10 +0530, SMG wrote:
> Hi all, > I created one table with following structure, and bound the same with a > DataGird. > > But I am not able to see any column which is having 'uniqueidentifi er' as > datatype. > > Name DataType > ID uniqueidentifie r > UID uniqueidentifie r > CatID uniqueidentifie r > CustName Varchar > CustAdd Varchar > > A help will be appreciated. > > Shailesh
uniqueidentifie r is stored as System.Guid in a dataset you should call a .Tostring method somewhere in your design.
- Oytun YILMAZ
Hi,
I got it working like this:
Protected Function GetGUIDText(ByV al guid As Guid) As String
Return guid.ToString
End Function
<asp:DataGrid id="DataGrid1" runat="server" AutoGenerateCol umns="False">
<Columns>
<asp:TemplateCo lumn>
<ItemTemplate >
<asp:Label runat="server" Text='<%# GetGUIDText(Dat aBinder.Eval(Co ntainer,
"DataItem.mYcOL UMN")) %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateCol umn>
</Columns>
</asp:DataGrid>
- Oytun YILMAZ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bernie |
last post by:
Greetings,
I have 3 servers all running SQL Server 2000 - 8.00.818. Lets call
them parent, child1, and child 2.
On parent, I create a view called item as follows:
CREATE view Item as
select * from child1.dbchild1.dbo.Item union all
select * from child2.DBChild2.dbo.Item
|
by: Vinny |
last post by:
Can anyone help me with this strange problem please?
I have a stored procedure, with a parameter defined as a
uniqueidentifier. The procedure does a select with a number of joins,
and filters within the Where clause using this parameter.
(@orderHeader_id uniqueidentifier)
SELECT *
|
by: Jacques Wentworth |
last post by:
Hi
I have the following problem. I have a SQL Server (2000) Stored Proc that
with 4 parameter (one being @UnlockKey uniqueidentifier OUTPUT). I run it
from Query Analyzer and the @Key parameter is valued. When I run it from
VB.Net it is empty. I tried it with other other datatype and it works fine.
Am I doing something wrong?
Thanks
|
by: christopher.secord |
last post by:
I have a table that contains articles (as in, newspaper articles, blog
articles, whatever). I need to use a column of type uniqueidentifier
because one of the requirements is that I be able to write the articles
out to XML or import them from XML, and references (as in, "for more
info read this: 2323-232-90934" have to still work after the export and
import).
So as a minimum, the table is going to look like this:
CREATE TABLE...
|
by: Scott M. Lyon |
last post by:
I've got a stored procedure that takes a few parameters as input parameters,
and one output parameter (a uniqueidentifier).
After the stored procedure call, I need to return that output parameter in a
System.Guid object.
Unfortunately, I'm having zero luck doing this.
Public Function BuildExtract(byval ProjectNumber as string, byval ListNumber
| |
by: Scott M. Lyon |
last post by:
I've got a stored procedure that takes a few parameters as input parameters,
and one output parameter (a uniqueidentifier).
After the stored procedure call, I need to return that output parameter in a
System.Guid object.
Unfortunately, I'm having zero luck doing this.
Public Function BuildExtract(byval ProjectNumber as string, byval ListNumber
|
by: dawg1998 |
last post by:
I am attempting to create a record that has a uniqueidentifier
datatype. I am receiving the following error each time I attempt the
Insert:
Incorrect syntax near '-'
The following is the code I am using to execute the Insert:
Dim strSQL As String
Dim objConn As SqlConnection
|
by: DotNetNewbie |
last post by:
Hi,
I am developing an application that has to scale and be very
efficient, and I am using asp.net membership in my application.
I set things up in my Users table (it has extra columns that I need
over and above what aspnet_users has):
UserID INT
Membershipuserid uniqueidentifier
|
by: =?Utf-8?B?QW5kcmV3?= |
last post by:
Vb.net 2005 app
I am looking up records in a sql 2005 database and I grab the
uniqueidentifier and put it into a variable (gID) of type GUID.
When I try to create a new record in a new table and link a uniqueidentifier
field with variable( gID) I get the following error:
operator & is not defined for types string and system.guid
|
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: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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: 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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |