| |
|
|
|
|
|
Dotnetuncle's Tip:
A method is a series of programming statements that perform an action. A method may be proceeded by the following modifiers: extern, unsafe, new, virtual, abstract, override, sealed, static, public, private, protected, internal.
|
|
|
|
|
|
How to add gridview/datagrid columns manually? Autogenerate in .NET?
The datagrid (of ASP.NET 1.1) and gridview (of ASP.NET 2.0) has a property called
AutoGenerateColumns. This property is set to false. After this, columns may
be set manually. Sample source below...
ASP.NET Example
<asp:GridView ID="GridView1" DataSourceID="SqlDataSource1" AutoGenerateColumns="False"
runat="server">
<Columns>
<asp:BoundField HeaderText="ID" DataField="au_id" ReadOnly="true" />
<asp:BoundField HeaderText="Last Name" DataField="au_lname" />
<asp:BoundField HeaderText="First Name" DataField="au_fname" />
<asp:BoundField HeaderText="Phone" DataField="phone" />
<asp:BoundField HeaderText="Address" DataField="address" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
SelectCommand="SELECT [au_id], [au_lname], [au_fname], [phone], [address] FROM [authors]"
ConnectionString="<%$ ConnectionStrings:Pubs %>" />
Protected Internal
Array
Sort Array
Throw
Multiple Catch
Polymorphism
Inheritance
Session Viewstate
Autogenerate
ReadOnly
Sealed Class
Sealed Method
Multiple Interfaces
Overloading
Overloaded Constructors
Generics
Main
Case Sensitive
Console
Specifier
Return Type
SetCommandLineArgs
System Environment
New
Default Values of Types
Compiler Error
Constant Variable
Const
Const - ReadOnly
Parameter Modifier
Out Ref
Interface
Interface Reference, is, as
System.Collection
More Interview Questions...
| |