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:811986
More Search Options
RSS Available
Matching Posts
Re: Grid View Help Please...
Hi use Template fileds in gridview <asp:GridView ID="GridView2" PageSize="5" AutoGenerateColumns="False" DataKeyNames="empid" runat="server" AllowPaging="True" > <Columns> <asp:BoundField id="project" DataField="Project" HeaderText="Project" /> <asp:TemplateField> <ItemTemplate> <asp:TextBox ID="emp1" Text="EMP1" runat="server"></asp:TextBox>
Posted to
Data Presentation Controls
(Forum)
by
adilahmedmd@gmail.com
on 12/18/2009
Re: how to read from gridview?????
If Me.GridView1.Rows.Count > 0 Then Dim dtnew As New Data.DataTable For Each column As DataControlField In GridView1.Columns dtnew.Columns.Add(column.HeaderText) 'If column.HeaderText = columnName Then ' Dim columnID As Integer = GridView1.Columns.IndexOf(column) ' Return columnID 'End If Next For Each row As GridViewRow In Me.GridView1.Rows Dim datarow As Data.DataRow datarow = dtnew.NewRow For i As Integer = 0 To i < row.Cells.Count datarow(i) = row.Cells(i).Text i = i + 1
Posted to
Data Presentation Controls
(Forum)
by
adilahmedmd@gmail.com
on 12/18/2009
Re: GridVeiw Events
Hi If u binding your gridview with database u chck if rows more than 0 u enabled edit button if gridview1.rows.count >0 enabled edit button or u place ur gridview html source i wil help u more
Posted to
Data Presentation Controls
(Forum)
by
adilahmedmd@gmail.com
on 12/15/2009
Re: selectedIndexChanged Event in Repeaters Header template
Hi Yes u can set Autopostback=True for dropdown
Posted to
Data Presentation Controls
(Forum)
by
adilahmedmd@gmail.com
on 12/15/2009
Re: GridView HeaderStyle.ForeColor does not work if not allow sorting
Hi Its work for me see my gridview <asp:GridView AllowPaging="true" Caption="Test" HorizontalAlign="Left" Width="1000" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Height="40" HeaderStyle-ForeColor="white" HeaderStyle-BackColor="darkblue" AllowSorting="false" ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="empid" DataSourceID="SqlDataSource1">
Posted to
Data Presentation Controls
(Forum)
by
adilahmedmd@gmail.com
on 12/15/2009
Re: GridVeiw Events
Hi use Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand btnedit.Visible = True End Sub Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand btnedit.Visible = True End Sub
Posted to
Data Presentation Controls
(Forum)
by
adilahmedmd@gmail.com
on 12/15/2009
Re: Table Doesn't have a primary key.
you want to set the Primary Key property of your Data Table to the ur column, you'll need to do so through code such as this: dt.PrimaryKey = new DataColumn[2] {dt.Columns[0], dt.Columns[1]}; http://msdn.microsoft.com/en-us/library/system.data.datatable.primarykey.aspx
Posted to
Data Presentation Controls
(Forum)
by
adilahmedmd@gmail.com
on 12/15/2009
Re: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
[quote user="junior_luiz"] when I load my gridview appears this error in my TableAdapter all fields are marked AllowDBNull = true and all the string fields maxlength = -1. Anybody know please tell me what may be this error? [/quote] If you allow the database field as null, you should pass the DBNULL.Value to the database on server site code. see this link http://forums.asp.net/t/1486396.aspx
Posted to
Data Presentation Controls
(Forum)
by
adilahmedmd@gmail.com
on 12/15/2009
Re: Data to display in dropdown and Textbox coming from other page, when a button is being clicked.
Hi in button click event u put your result set data in session and use in next page to bind the controls or use caching or in button click event u put ur creteria textbox fields in session variables and navigate to ur desired page and make the query and what every result back bind with dropdown and textbox fields
Posted to
Data Presentation Controls
(Forum)
by
adilahmedmd@gmail.com
on 12/10/2009
Re: Deleting with gridview with datatable populated in runtime.
HI use DataKeyNames="fieldid" and acess row_deleting event Dim i As Integer = Me.GridView1.DataKeys(0).Value
Posted to
Data Presentation Controls
(Forum)
by
adilahmedmd@gmail.com
on 12/10/2009
Page 1 of 45 (449 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 1
Channel 9:
Francesco Logozzo - Static Checking with Code Contracts for .NET
Channel 9:
Channel 9 Live at PDC09: Doug McCuistion, NASA
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 3: Configuration
Channel 9:
Reading Debate with Bill Buxton
Channel 10:
Reading Debate with Bill Buxton
WindowsClient:
Build WPF Data Controls for Outlook Addins Easily with VS2010
Channel 9:
Channel 9 Live at PDC09: .Net Rocks Part 2
Channel 9:
Channel 9 Live at PDC09: .Net Rocks Part 1
Channel 9:
Channel 9 Live at PDC09: Wei Zhu (Facebook)
WindowsClient:
WPF Manipulation Basics
ASP.NET:
High CPU in .NET app using a static Generic.Dictionary
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online