GridView's DataSource in Code Behind

VopsTrops

New Member
I have already a populated \[code\]GridView\[/code\] working perfect, But now I need to set some \[code\]parameters\[/code\]. I'm populating the \[code\]gridview\[/code\] in \[code\]HTML page\[/code\]. Here's my \[code\]FULL GridView HTML code\[/code\]Hope you guys don't consider it as an spam, because its a huge code.\[code\]<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" style="font-family: Verdana, Arial, Sans-Serif" DataKeyNames="id" CssClass="gridview" DataSourceID="MyDataSource" AllowSorting ="True" AllowPaging="True" BackColor="#CCCCCC" BorderStyle="Inset" BorderWidth="2px" BorderColor="GrayText" CellPadding="1" CellSpacing="5" HeaderStyle-HorizontalAlign="Center" OnRowDataBound="GridView1_RowDataBound" ForeColor = "Black" RowStyle-CssClass="gridview" onrowcommand="GridView1_RowCommand"> <AlternatingRowStyle BackColor="#CCCCCC" /> <columns> <asp:BoundField HeaderText="ID" DataField="id" /> <asp:BoundField HeaderText="PRIORIDADE" DataField="prioridade" SortExpression="prioridade" ItemStyle-HorizontalAlign="Center" /> <asp:BoundField HeaderText="SITUA??O" DataField="situacao" SortExpression="situacao" ItemStyle-HorizontalAlign="Center" > <ItemStyle HorizontalAlign="Center" /> </asp:BoundField> <asp:BoundField HeaderText="RESPONSAVEL" DataField="responsavel" SortExpression="responsavel" HeaderStyle-Width="65px" ItemStyle-HorizontalAlign="Center"> <HeaderStyle Width="65px" /> <ItemStyle HorizontalAlign="Center" /> </asp:BoundField> <asp:BoundField HeaderText="DATA DE CADASTRO" DataField="dt_cadastro" DataFormatString="{0:dd/MM/yyyy}" HeaderStyle-Width="60px" SortExpression="dt_cadastro" ItemStyle-HorizontalAlign="Center" > <HeaderStyle Width="60px" /> <ItemStyle HorizontalAlign="Center" /> </asp:BoundField> <asp:BoundField HeaderText="PREVIS?O DE T
 
Back
Top