PC Review


Reply
Thread Tools Rate Thread

ASP.Net Grid Control (can it be dynamically configured)

 
 
Bewley Andrew, Sale
Guest
Posts: n/a
 
      2nd Oct 2003
Hi,





I have a dataset table whose column definition is dynamic. (I.e. the
viewable columns are configured by the user).

Within the table one or more columns need to be displayed as a tick (or
not, depending on the data value) even possibly a nice graphic.



The question is how the hell do I dynamically define the column type (or
graphic) at the point of data binding.



I've read allsorts of KB posting which suggest adding the html tags at
design time



i.e.



<aspataGrid ...>
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<asp:CheckBox Runat="server" Enabled="False" Checked=
'<%# Container.DataItem("HasNotes") = True %>'/>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</aspataGrid>



But this is no use because I don't know what the column name is, unless
there is a way of squirting such code into the html as it is rendered???





Please help as this is driving me mad!!!



Regards



Andy




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
WPF: Dynamically position label in grid moondaddy Microsoft C# .NET 0 12th Dec 2008 07:44 AM
Dynamically formatting a row in a Data Grid =?Utf-8?B?R3VkbmkgRy4gU2lndXJkc3Nvbg==?= Microsoft Dot NET 1 10th Oct 2005 04:10 PM
Load User Control Dynamically, Cast object dynamically =?Utf-8?B?UmV6YSBOYWJp?= Microsoft ASP .NET 1 5th Mar 2005 01:04 AM
Load User Control Dynamically, Cast object dynamically =?Utf-8?B?UmV6YSBOYWJp?= Microsoft ASP .NET 1 4th Mar 2005 08:57 PM
Adding new records to a grid dynamically AnandaSim Microsoft ASP .NET 2 1st Mar 2005 09:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:53 PM.