Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:634856
More Search Options
RSS Available
Matching Posts
Re: Help with data grid
To do that, set the columns ReadOnly property to true, which will prevent it from displaying an edit control in edit mode.
Posted to
Data Presentation Controls
(Forum)
by
ResinMC
on 4/3/2006
Re: columns with same name / databinder
When you bind to your data source, speficy which table to bind to, instead of just binding to the dataset. i.e. gridView1.DataSource = ds.Tables[0];
Posted to
Data Presentation Controls
(Forum)
by
ResinMC
on 4/3/2006
Re: Cannot get new blank row to appear at bottom of Datagrid!!!
Ok, to start out with, use template columns for all columns that you will need controls in the footer, and place your controls in the footer template - i.e. <asp:TemplateField HeaderText="Port"> <ItemTemplate> <%# Eval("DBValue")%> </ItemTemplate> <FooterTemplate> <asp:TextBox ID="txtNewDBValue" runat="server"></asp:TextBox> </FooterTemplate> </asp:TemplateField> Then, in you event handler for your add button, get a reference to your textbox so
Posted to
Data Presentation Controls
(Forum)
by
ResinMC
on 3/30/2006
Re: FormView.DataSource = DataSet faults with edit/insert...
After setting your datasource, make sure you call the DataBind method on the control.
Posted to
Data Presentation Controls
(Forum)
by
ResinMC
on 3/29/2006
Re: Cannot get new blank row to appear at bottom of Datagrid!!!
I would suggest moving your edit row (currently your new row in the datagrid) into the footer of the grid. Then, set your grid to hide the footer. When the user clicks the button, set ShowFooter to true, and rebind your grid.
Posted to
Data Presentation Controls
(Forum)
by
ResinMC
on 3/29/2006
Re: GridView: Show/hide columns based on column name
Use the following method to retrieve the column index of the column you want to hide: int GetColumnIndex(GridView grid, string colName) { int intCount = 0; foreach (DataColumn col in grid.Columns) { if (col.ColumnName.ToLower().Trim() == colName.ToLower().Trim()) { return intCount; } intCount++; } return -1; } From there, you can hide your column by calling the following: GridView1.Columns[GetColumnIndex(GridView1, "column name here")].Visible = false;
Posted to
Data Presentation Controls
(Forum)
by
ResinMC
on 3/29/2006
Re: Help with data grid
Your problem here is where and when you are trying to get your data. The EditCommand event handler is simply there for your to change the appearance of your grid. In the event handler you supplied above, you set your edit item index and rebind your grid correctly, but until the grid has been displayed on the client's machine, there are no textboxes in the grid. It has to be drawn first. What you need to do is an an UpdateCommand event handler. Then move your get textbox value code to that event handler
Posted to
Data Presentation Controls
(Forum)
by
ResinMC
on 3/29/2006
Re: problem with calling javascript inside datalist
try changing your onclick quotes from double quotes to single quotes - i.e.: <img onclick='javascript:popImage('<%#Me.Application("ProductsImagesPathStr")& DataBinder.Eval(Container.DataItem,"image")%>')' border=0 src=icn-zoom.gif >
Posted to
Data Presentation Controls
(Forum)
by
ResinMC
on 3/29/2006
Re: Is possible to abort "cleanly" databinding of datagrid?
Instead of trying to close the data reader during databinding - rather create a new datasource (say a dataset table). Before binding, scroll through your datareader, and add rows to your data set table before calling the bind, and only add the first x number of rows you need. Then, at the end, bind your data to your new data table, which only has the rows you want.
Posted to
Data Presentation Controls
(Forum)
by
ResinMC
on 3/16/2006
Re: Question about SQLParameter...
This will build up a string of parameters and values from your SQLCommand object (cmd), in a stringbuilder object (sb): foreach ( SqlParameter parm in cmd . Parameters) { sb.Append(parm . ParameterName + " = " + parm . SqlValue . ToString() + "\r\n"); } hope this helps
Posted to
Data Presentation Controls
(Forum)
by
ResinMC
on 3/16/2006
Page 1 of 6 (52 items) 1
2
3
4
5
Next >
...
Last »
WindowsClient:
The (Near) Final Word on Multi-Monitor Taskbars for Windows 7 - Ultramon vs. DisplayFusion
WindowsClient:
Looking back at 2009, and forward to 2010
Silverlight:
Polling Video – A Viable sub-second alternative?
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
TechNet Edge:
How Microsoft Reduces Operational Risk through Business Continuity Management
Channel 9:
Jeffrey Van Gogh and Bart De Smet: Inside System.Interactive
WindowsClient:
Runtime Fault Injection using TestAPI
TechNet Edge:
TechNet Radio: Community Corner with John Weston (Episode 1)
TechNet Edge:
Windows Firestarter Events (Part 3 of 5): IE8 - Browse the Web in Style!
WindowsClient:
The year ahead, 2010.
TechNet Edge:
FOPE Policies Deep Dive Interview
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online