Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Listing

Reply
Thread Tools

Listing

 
 
x109
Guest
Posts: n/a
 
      05-13-2004
I have SQL descriptions like this
comm.CommandText = "SELECT ForumBaslik.Baslik, ForumBaslik.Soru,ForumBaslik.BaslikID,userTable.ku lAd as Kul, ForumCevap.SoruID,ForumCevap.CevapID as CvpID, ForumCevap.Cevap as Cvp, ForumCevap.Ekleyen as CvpEkleyen, ForumCevap.Tarih as CvpTarih FROM ForumBaslik INNER JOIN (userTable INNER JOIN ForumCevap ON userTable.userId = ForumCevap.Ekleyen) ON ForumBaslik.BaslikID=ForumCevap.SoruID where ForumCevap.SoruID=" + deger.ToString

Here is When I use as then I can list data in datagrid.But when not use I dont list data.

<aspataGrid id="DataGrid1" runat="server" Width="536px" AutoGenerateColumns="False" Height="112px">
<Columns>
<asp:BoundColumn DataField="CvpID" HeaderText="ID"></asp:BoundColumn>
<asp:BoundColumn DataField="Cvp" HeaderText="Cevaplar"></asp:BoundColumn>
<asp:BoundColumn DataField="Kul" HeaderText="Cevaplayan"></asp:BoundColumn>
<asp:BoundColumn DataField="CvpTarih" HeaderText="Tarih"></asp:BoundColumn>
</Columns>
</aspataGrid>

I dont want this way.But an other way for this?

 
Reply With Quote
 
 
 
 
Ken Cox [Microsoft MVP]
Guest
Posts: n/a
 
      05-13-2004
Is it that you're having a problem with an empty datagrid? If so, you might
want to check here:

http://www.eworldui.net/CustomContro...aGridDemo.aspx

"x109" <s> wrote in message news:e$(E-Mail Removed)...
I have SQL descriptions like this
comm.CommandText = "SELECT ForumBaslik.Baslik,
ForumBaslik.Soru,ForumBaslik.BaslikID,userTable.ku lAd as Kul,
ForumCevap.SoruID,ForumCevap.CevapID as CvpID, ForumCevap.Cevap as Cvp,
ForumCevap.Ekleyen as CvpEkleyen, ForumCevap.Tarih as CvpTarih FROM
ForumBaslik INNER JOIN (userTable INNER JOIN ForumCevap ON userTable.userId
= ForumCevap.Ekleyen) ON ForumBaslik.BaslikID=ForumCevap.SoruID where
ForumCevap.SoruID=" + deger.ToString

Here is When I use as then I can list data in datagrid.But when not use I
dont list data.

<aspataGrid id="DataGrid1" runat="server" Width="536px"
AutoGenerateColumns="False" Height="112px">
<Columns>
<asp:BoundColumn DataField="CvpID"
HeaderText="ID"></asp:BoundColumn>
<asp:BoundColumn DataField="Cvp"
HeaderText="Cevaplar"></asp:BoundColumn>
<asp:BoundColumn DataField="Kul"
HeaderText="Cevaplayan"></asp:BoundColumn>
<asp:BoundColumn DataField="CvpTarih"
HeaderText="Tarih"></asp:BoundColumn>
</Columns>
</aspataGrid>

I dont want this way.But an other way for this?

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Listing installed perl modules gusmeister Perl 3 03-03-2004 08:57 PM
Cisco 678 long listing since CBOS upgrade S. Smith Cisco 0 02-10-2004 06:43 PM
Listing MAC Table with SNMP Michel Lapointe Cisco 2 11-07-2003 01:40 PM
Directory Listing JD Perl 0 08-23-2003 11:53 PM
Listing processes using Perl (Win32) Filipe Bonjour Perl 0 07-26-2003 04:49 PM



Advertisments