List Info

Thread: Re: New to ASP.NET 2.0 Gridview control issue Number 1




Re: New to ASP.NET 2.0 Gridview control issue Number 1
country flaguser name
United States
2007-10-21 18:00:38

Okay, so I'm looking at some of the controls on those sites. Some look
really good.

I'll try some demos at work. My car is playing up today for the first
time so I'm not at work and have time to look for things to try.

Thanks for your advice guys.

--- In AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.com, "Brett Stinson"
<brett.stinson...> wrote:
&gt;
> Duane:
&gt; I completely agree with Dean on this one. Even if you have a
complete
> aversion
> to M$ controls, you should at least look at some of the third party
controls
&gt; out there
&gt; (farpoint, infragistics, spreadsheetgear, telerik, etc...) before
creating
&gt; something from scratch. You may have to spend
&gt; a little money, but it will be well worth it in time. All of these
controls
&gt; have been developed and fully tested and are in
> use by many developers already.
>
>; Look here for possible 3rd party controls -->
&gt; http://www.google.com/search?hl=en
>; <http://www.google.com/search?hl=en&q=asp.net3;grid+controls&gt;
> &q=asp.net+grid+controls
>;
> Brett Stinson
> b <blocked::mailto:brett.stinson... rett.stinson...
>;
> _____
&gt;
> From: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.com
&gt; [mailto: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.com] On Behalf Of Dean Fiala
&gt; Sent: Sunday, October 21, 2007 9:50 AM
> To: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.com
&gt; Subject: Re: [AspNetAnyQuestionIsOk] Re: New to ASP.NET 2.0 Gridview
control
> issue Number 1
>
>
>;
> So, you are going to be writing all your own code to reproduce a grid
>; control's functionality. Personally, I'd invest the time learning how
to
> use an existing control.
>
>; The DataGrid and GridView are as granular as you need them to be. You
can
> use them fully bound, or you can personally fill every cell in the
> Item_DataBound (Row_DataBound in GridView) events. All the
functionality
> you wish to implement (and a lot more) is already available in both of
these
> controls. Before you blow a week writing a one-off piece of code to
create
> a fancy HTML table, you might want to more thoroughly investigate the
> available controls.
>
&gt; On 10/21/07, Duane Hennessy duanehconnexus.
> <mailto:duaneh%40connexus.net.au> net.au> wrote:
&gt; >
>; > I'm thinking of trying something else Brett. I actually don't like
the
> > controls MS provides and in order to move forward
> > I need more granular control which will give me a quicker
development
> > time. What I'm thinking of doing is:
> >
>; > * Create a class that will contact the Database and return a
> > recordset as a HTML Table.
&gt; > * At the end of the HTML code will be a row that has an insert
&gt; > button, text boxes and drop down boxes (which will be classes in
their
> > own right).
> > * It will behave like a spreadsheet but I can keep all IDs in
> > attributes of the row tags. They remain hidden.
> > * It also means I can push updates and inserts through subprocedures
> > instead of directly accessing tables.
> > * I will be able to read from a view with a bunch of columns and I
> > can customise what I use for the insert statement within the VB
page.
> >
>; > It means a bit more code in the backend but a lot less heartache
> > (Hopefully, I'm giving this a day's trial tomorrow). It also reduces
my
> > unfamiliarity of the technology.
> > What I need to know is: How do I capture the Click Event of a
control
> > within a Control Collection. If I had a row of generated buttons
(ASP or
> > HTML) how do I capture which one fired the Click Event?
&gt; >
>; > Duane.
&gt; >
>; >
>; > --- In AspNetAnyQuestionIs
> <mailto:AspNetAnyQuestionIsOk%40yahoogroups.com&gt; Ok%40yahoogroups.com">Okyahoogroups.com,
"Brett
> Stinson&quot;
> > brett.stinson wrote:
&gt; > >
>; > > tool*
&gt; > >
> > >
>; > >
>; > > On 10/17/07, Brett Stinson brett.stinson wrote:
&gt; > > >
>; > > > Duane:
&gt; > > > I would stick with GridView if you can. Once you master it, it
is
> > IMHO
>; > > > a better all
> > > > around too than the datagrid.
> > > >
>; > > > --
> > > > Brett.Stinson
> > > >
>; > > > On 10/17/07, Duane Hennessy duaneh wrote:
&gt; > > > >
>; > > > > Thanks Brett, I'll check it out.
>; > > > >
>; > > > > I also noticed from the search link you sent me that a
DataGrid
> > may
> > > > > solve my problem also, if I fail
>; > > > > to get the GridView doing what I want.
&gt; > > > >
>; > > > > --- In
> > AspNetAnyQuestionIs <mailto:AspNetAnyQuestionIsOk%40yahoogroups.com&gt;
> Ok%40yahoogroups.com">Okyahoogroups.com<AspNetAnyQuestionIsOk%40yahoogroup
> > s.com>,
> > > > > "Brett Stinson&quot;
> > > > > brett.stinson wrote:
&gt; > > > > >
>; > > > > > Duane:
&gt; > > > > > Look into using the DataKeys collection of the gridview
rather
&gt; > than
>; > > > > having
&gt; > > > > > the key fields
&gt; > > > > > in the gridview itself....
> > > > > >
>; > > > > >
>; > > > > > MSDN -
> > > > > >
>; > > > >
>; > > > >
>; > http://msdn2.
>
<http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.grid
v
>
> microsoft.com/en-us/library/system.web.ui.webcontrols.gridv
> >
> > > > >
>; > iew.datakeys.aspx<;http://msdn2.
> <http://msdn2.microsoft.com/en-us/library/system.web.ui>
> microsoft.com/en-us/library/system.web.ui
> > .webcontrols.gridview.datakeys.aspx>
> > > > > >
>; > > > > > Google -
> > > > > >
>; > http://www.google.
>
<;http://www.google.com/search?source=ig&amp;hl=en&amp;rlz=&;q=gridview+datakeys>
> com/search?source=ig&hl=en&amp;rlz=&amp;q=gridview+datakeys
>; > > > > >
>; > > > > > HTH
> > > > > > --
> > > > > > Brett.Stinson
> > > > > >
>; > > > > >
>; > > > > > On 10/17/07, Duane Hennessy duaneh wrote:
&gt; > > > > > >
>; > > > > > > Hi,
> > > > > > >
>; > > > > > > I'm a DBA who has to build a website for my company. I'm
> > having
&gt; > > > > trouble
> > > > > > > with the built-in GridView control.
> > > > > > >
>; > > > > > > Basically, I want to hide Primary and Foreign key columns
> > within the
> > > > >
>; > > > > > > GridView controls from the user without affecting the
> > control's
> > > > > ability
> > > > > > > to update the table.
&gt; > > > > > >
>; > > > > > > I tried hiding the columns on the Page_Load event of the
page
> > but
> > > > > then
>; > > > > > > the control couldn't find the ID when updating the data. I
> > don't
&gt; > > > > want
>; > > > > > > the user to see the ID fields for their data.
&gt; > > > > > >
>; > > > > > > I'm using VB.NET <http://vb.net/> <http://vb.net/> as my
> > source
&gt; > > > > code. I'm still
&gt; > > > > learning
> > > > > > > the Object
&gt; > > > > > > Library and so on.
> > > > > > >
>; > > > > > > If it helps, I'm not new to programming. I've been a
Software
> > > > > Engineer
> > > > > > > for 10 years prior to working my way into being a DBA. I'm
> > fluent in
> > > > > the
> > > > > > > following languages:
> > > > > > >
>; > > > > > > VB, VBScript, VBA
> > > > > > > JavaScript
> > > > > > > Python
&gt; > > > > > > RealBasic
> > > > > > > AppleScript
> > > > > > > Bash Shell
&gt; > > > > > > Transact-SQL
> > > > > > > XML, HTML (DHTML blah blah) Even though these aren't
&gt; > languages.
> > > > > > > Perl etc etc.
>; > > > > > >
>; > > > > > > So I can pick through most complicated code snippets if
> > necessary.
> > > > > > >
>; > > > > > > Thanks for any help. []
> > > > > > >
>; > > > > > > [Non-text portions of this message have been removed]
> > > > > > >
>; > > > > > >
>; > > > > > >
>; > > > > >
>; > > > > >
>; > > > > > [Non-text portions of this message have been removed]
> > > > > >
>; > > > >
>; > > > > [Non-text portions of this message have been removed]
> > > > >
>; > > > >
>; > > > >
>; > > >
>; > > >
>; > > >
>; > > >
>; > >
>; > >
>; > > --
> > > Brett.Stinson
> > >
>; > >
>; > > [Non-text portions of this message have been removed]
> > >
>; >
>; >
>; >
>; > [Non-text portions of this message have been removed]
> >
>; >
>; >
>; >
>; > Yahoo! Groups Links
&gt; >
>; >
>; >
>; >
>;
> --
> Dean Fiala
&gt; Very Practical Software, Inc
> Now with Blogging...
> http://www.vpsw. <http://www.vpsw.com/blogbaby&gt; com/blogbaby
> Microsoft MVP
>
> [Non-text portions of this message have been removed]
>
>;
>
>
>
>
&gt; [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )