Have you even read my post above ? DataKeyNames is the key to getting
the behaviour you desire.

On Jan 11, 10:16 pm, "m...@ni" <[email protected]> wrote:
> here is my code..............
>
> <asp:GridView ID="GV" runat="server" AutoGenerateColumns="False"
> AllowPaging="True" >
>  <Columns>
>    <asp:BoundField DataField="CId" HeaderText="CId"
> InsertVisible="False" ReadOnly="True" SortExpression="CId" />
>    <asp:BoundField DataField="Name" HeaderText="Cng Station Name"
> SortExpression="Name" />
>    <asp:TemplateField HeaderText="Model Type"
> SortExpression="ModelType">
>       <ItemTemplate>
>              <asp:Label ID="LBLModelType" runat="server" Text='<%#
> GetModelType(DataBinder.Eval
>              (Container.DataItem,"ModelType").ToString()) %>'></
> asp:Label>
>       </ItemTemplate>
>     </asp:TemplateField>
> ---------------------------------------------------------------------------­-----------------------------------------------------------------------
>     <asp:BoundField DataField="WrtId" HeaderText="WrtId"
> SortExpression="WrtId" />
> ---------------------------------------------------------------------------­-------------------------------------------------------------------------
>   </Columns>
> </asp:GridView>
>
> No brandon,it isn't the case,i did try over that whatever you told
> me,but that doesn't worked.

Reply via email to