Thank you ALL for once again being helping me *---* I mean it !!
i'm gonna to read your links now Ramesh ( I was at lunch time, just got back to work xD )
I don't like to use the Wizard to fill nothing with data (listview,gridview,reportviewer etc...) If I need to change the connection string then it become a problem . . .
All tutorials I found is with the wizard to populate the gridview, any tip ? And how May I choose the ConnectionString that is in my Web.Config to be used by the GridView
Set AutoGenerateColumns="True" in your gridview
more details please look this
http://www.codefixer.com/asp-net/tutorials/sqldatasource-parameters.asp
http://www.asp.net/web-forms/tutorials/data-access/accessing-the-database-directly-from-an-aspnet-page/using-parameterized-queries-with-the-sqldatasource-vb
Ghaleon
Member
24 Points
96 Posts
What is the best way to do this
Dec 14, 2012 12:36 PM|LINK
Good morning everyone !
I'd like to know wich one is the best/easy way to do this ( Tables, GridView, ListView etc...)
The Button: Alterar = Update and Visualizar = View
Thanks in advance !
gregaDro
Member
318 Points
65 Posts
Re: What is the best way to do this
Dec 14, 2012 12:46 PM|LINK
I would say GridView.
kszymaniak
Member
207 Points
115 Posts
Re: What is the best way to do this
Dec 14, 2012 12:51 PM|LINK
Best and Easy: GridView
RameshRajend...
Star
7983 Points
2099 Posts
Re: What is the best way to do this
Dec 14, 2012 12:56 PM|LINK
my openion also gridview
You can look this .GridView is best way for your multicoloumn and header...
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/multicolumnheaders/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/multicolumneditform/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/client/cellselection/defaultcs.aspx
oned_gk
All-Star
36280 Points
7394 Posts
Re: What is the best way to do this
Dec 14, 2012 02:06 PM|LINK
Suwandi - Non Graduate Programmer
Ghaleon
Member
24 Points
96 Posts
Re: What is the best way to do this
Dec 14, 2012 03:44 PM|LINK
Thank you ALL for once again being helping me *---* I mean it !!
i'm gonna to read your links now Ramesh ( I was at lunch time, just got back to work xD )
I don't like to use the Wizard to fill nothing with data (listview,gridview,reportviewer etc...) If I need to change the connection string then it become a problem . . .
All tutorials I found is with the wizard to populate the gridview, any tip ? And how May I choose the ConnectionString that is in my Web.Config to be used by the GridView
thanks
RameshRajend...
Star
7983 Points
2099 Posts
Re: What is the best way to do this
Dec 14, 2012 04:05 PM|LINK
http://techbrij.com/975/asp-net-gridview-repeatcolumns-jquery
Ghaleon
Member
24 Points
96 Posts
Re: What is the best way to do this
Dec 14, 2012 04:23 PM|LINK
This is MyPage and the GridView is not showing when I debug... ITs blank !
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterAdm.Master" AutoEventWireup="true" CodeBehind="TodosChamados.aspx.cs" Inherits="Testando.TodosChamados" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <link href="App_Themes/Styles/TodosChamadosStyle.css" rel="stylesheet" type="text/css" /> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server"> <div id="conteudo"> <asp:GridView ID="GridView1" runat="server" DataSourceID="MyDataSource" AllowSorting ="True" AllowPaging="True" DataKeyNames="ProductID" AutoGenerateEditButton="True" AutoGenerateDeleteButton="True"> </asp:GridView> <asp:SqlDataSource ID="MyDataSource" runat="server" ConnectionString="server=localhost;User Id=root;password=ik9rru2j;database=chamados" ProviderName ="MySql.Data.MySqlClient" SelectCommand="SELECT prioridade, status, responsavel, dt_cadastro, previsao_termino, titulo FROM chamados"> </asp:SqlDataSource> </div> </asp:Content>RameshRajend...
Star
7983 Points
2099 Posts
Re: What is the best way to do this
Dec 14, 2012 04:30 PM|LINK
Set AutoGenerateColumns="True" in your gridview
more details please look this
http://www.codefixer.com/asp-net/tutorials/sqldatasource-parameters.asp
http://www.asp.net/web-forms/tutorials/data-access/accessing-the-database-directly-from-an-aspnet-page/using-parameterized-queries-with-the-sqldatasource-vb
Ghaleon
Member
24 Points
96 Posts
Re: What is the best way to do this
Dec 14, 2012 04:33 PM|LINK
Still blank =\
<asp:GridView ID="GridView1" runat="server" DataSourceID="MyDataSource" GridLines="Horizontal" AutoGenerateColumns="True" AllowSorting ="True" AllowPaging="True" DataKeyNames="ProductID" AutoGenerateEditButton="True" AutoGenerateDeleteButton="True"> </asp:GridView>