473,396 Members | 1,756 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,396 software developers and data experts.

Gridview inside Gridview little problems...

Hi everyone

I'm working with some nested gridviews. The problem I have is that the
'child' gridview is populated by a select... that depends of the content of
a session().

So far, no luck in getting the session value inside the SelectCommand=
Always end with different erros, seems doesn't like the <% server code %>
inside the SelectCommand at all. Tried also with @value, and other ways, no
luck at all.

So I was thinking of another alternative, that is show/hide columns from the
codebehind. How can it be done? I mean, I know how to show/hide columns, but
how can I access to the properties of the 'child' gridview? =S
Dec 6 '05 #1
1 1266
Ok, made it work.
I declared a public (string) from the codebehind and generated _ALL_ the
SelectCommand in there.
The I just used SelectCommand="<%# SelectCommand_CAT %>">, now it works.
Seems that it doesn't like to concatenate. Lol.

Tnx everyone.
"Carlos Albert" <nadie@ningunlugar> escribió en el mensaje
news:u$****************@tk2msftngp13.phx.gbl...
Hi everyone

I'm working with some nested gridviews. The problem I have is that the
'child' gridview is populated by a select... that depends of the content of a session().

So far, no luck in getting the session value inside the SelectCommand=
Always end with different erros, seems doesn't like the <% server code %>
inside the SelectCommand at all. Tried also with @value, and other ways, no luck at all.

So I was thinking of another alternative, that is show/hide columns from the codebehind. How can it be done? I mean, I know how to show/hide columns, but how can I access to the properties of the 'child' gridview? =S

Dec 6 '05 #2

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

Similar topics

6
by: Nalaka | last post by:
Hi, I have a gridView (grid1), which as a templateColumn. In the template column, I have put in a gridView (grid2) and a ObjectDataSource (objectDataSource2). Question is... How to I pass the...
3
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum....
7
by: | last post by:
Hello, Does anyone have an idea on how I can filter the data in the gridview control that was returned by an sql query? I have a gridview that works fine when I populate it with data. Now I...
1
by: MasterChief | last post by:
Is it possible to select an item on a gridview by clicking on it and then being able to click a link for example that says EditOrder in a treeview and have the EditOrder page open up viewing what...
0
by: Elmo Watson | last post by:
OK here's the scenario - GridView - populated with Object DataSource - technically no problem there (except what will be shown later in the post) Edit/Delete - first column - 'JobTypeID' - in...
3
by: Jeff | last post by:
Hey asp.net 2.0 In the source I posted below, there is a GridView (look at the bottom of the script): <asp:GridView ID="gvwOnline" runat="server"> </asp:GridView> I'm trying to assign a...
2
by: William Youngman | last post by:
We are developing an application that presents data to the user in a gridview and we are using the dropdown extender to give the user a SharePoint 2007 type dropdown menu attached to the cells of a...
3
by: Nathan Sokalski | last post by:
I have a GridView control with three columns, all BoundField columns. They all have a HeaderText and DataField property set, and the third one has a DataFormatString property as well. When I run my...
4
by: Yin99 | last post by:
I have a Gridview binding to a DataTable source. I'd like to set the column with of the second column. I cannot do this apparently because when AutoGenerateColumns=true, they do not appear in the...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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
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...

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.