<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" AllowPaging="True" EnableSortingAndPagingCallbacks="True" ForeColor="#333333" CellPadding="4" GridLines="None" PageSize="3"> <AlternatingRowStyle BackColor="White" /> <Columns> <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" /> <asp:BoundField DataField="ImageName" HeaderText="Image Name" SortExpression="ImageName" /> <asp:ImageField HeaderText="Image" ItemStyle-Width="50px" DataImageUrlField="ImagePath" />
change this line in your code <asp:ImageField HeaderText="Image" ItemStyle-Width="50px" DataImageUrlField="ImagePath" ControlStyle-Width="100" ControlStyle-Height = "100" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)