Is it possible ..??
I want to add these command fields @ edit,delete,update etc to grid-view .. but when i try to add them its coming on left side .. which i don't prefer ..
When i add them it should come on right side ..
| name | age | sex | type | salary | ||
|---|---|---|---|---|---|---|
| Delete | sunil | 24 | male | not-married | 25000.0000 |
gridview data-source property not using .. under form load i am getting data to grid ..
Cheers .. i hope u got my problem ..
Ty

Sanjay KumarPosted Nov 6, 2013, 4:35 AM
<div>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="StudentID" DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="StudentID" HeaderText="StudentID" InsertVisible="False" ReadOnly="True" SortExpression="StudentID" />
<asp:BoundField DataField="StudentName" HeaderText="StudentName" SortExpression="StudentName" />
<asp:BoundField DataField="Mobile" HeaderText="Mobile" SortExpression="Mobile" />
<asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
<asp:CommandField ShowEditButton="True" />
Columns>
asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TESTDBConnectionString %>" SelectCommand="SELECT * FROM [StudentTable]">asp:SqlDataSource>
div>
SUNIL GUTTAPosted Nov 6, 2013, 5:18 AM
You been helpful in one direction but thing is
Let me be more clear . in the above mentioned html code ..
under gridview .. you used DataSourceID="SqlDataSource1" .. but the thing is .. i am not using it ...
Under form load using connection string and binding data to it using GRIDVIEW1.DATABIND() .
sO now how to achieve this ...
I hope you got my intention ..
Cheers TY
SUNIL GUTTAPosted Nov 5, 2013, 12:21 PM
Link doesn't help my cause
The mentioned link does say's about gridview using datasource option directly in gridview .
But in my case i am using connection string and binding the data to grid :)
Any video or links are much appreciated ..
Ty for quick response friend
Sanjay KumarPosted Nov 5, 2013, 10:40 AM
http://www.webcodeexpert.com/2013/07/how-to-bindinserteditupdatedelete-in.html#.UnkQ4FMw8eM