I am trying to override data in a column of a DataView that will be used in a datagrid.
So far all I can find is that you can add a column to a DataView but I am not finding a way to modify the data in the column. Ex: dataView.Table.Columns.Add( datacolumn ); works fine but there is...
Then the only 3 lines that need to be in VB.NET would be these:
HyperLink objyourimage = null;
objyourimage = (HyperLink)e.Item.FindControl("Your_Image");
if (objyourimage != null) {
These could be converted to VB.NET with a little looking around. The ImageURL & NavigateURL code would be the...
This might be useful for you if you need to use a link on your images. If you don't use it as a hyperlink, there probably are other alternatives, or you can 'protect' your image so that it does not function as a hyperlink and not need a NavigateURL. ImageURL below can be dynamically defined in...
Just out of curiosity, why would people want to use session variables and have a web app that times out every 20 minutes? Even if you change the IIS default to 60 minutes, that impacts the server.
Pros/Cons of using session variables?
Thanks, JZelhart & link9. I'll find out what I can about overriding the Render method to minimize the size of the HTML tags but link9 is likely right. Maybe I can remove what hidden variables, controls etc I can but I suspect I'll get nada out of this.
It would seem that for read-only grids...
I'm looking for ways to improve the HTML performance of ASP.NET webpages using scrollable DataGrids... The larger the datagrid, the longer it takes for the webpage to display with the grid. That blank white page displaying for a few seconds between displays of the webpages can be annoying...
Correction, 2nd paragraph should have said Allowpaging=false. Here is a corrected post.
I have a DataGrid with AllowPaging=TRUE where the 1st column in the header is an Icon. Prior to that column being an icon (used to be text), the Sort by header columns worked fine. Now with the Icon in that...
I have a DataGrid with AllowPaging=true where the 1st column in the header is an Icon. Prior to that column being an icon (used to be text), the Sort by header columns worked fine. Now with the Icon in that column, the SortEventHander_OnClick's e.SortExpression value always is the 1st column's...
I have this method to build the Paging numbers for a datagrid since for some reason the collection containing the page numbers is not in perfect sequence e.g.
1 2 3 4 5 6 7 8 9 10 11 12 13 32 33 34 35 36 14 15 16 ....
- debugging showed that the ItemCreated event for Pagers is being invoked...
Many Thanks, Jeff!
I used your info to find out more about JS Match at http://www.devguru.com/Technologies/ecmascript/quickref/string_match.html (Regular Expression) and combined info from both examples. I really thought I was going to have to code a loop and wasn't looking forward to debugging...
Is there a Javascript command that will do a "find" of a variable within a text field? ex: find "lnkEdit" in a field that has "grid_lnkEdit" and return "lnkEdit" ?
Hi - FWIW - I had this problem before and spent too much time on this - I think I tried some of the above solutions, to no avail.
My solution was to put the DataBind in a Try-Catch block and when the error occurred, I just repeated the DataBind - that worked out fine. But you might want to try...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.