473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

DataGrid SUCKS!

Does anyone else have an issue with the datagrid?

My complaints are:
1) it is much harder to change the column style, row style, or cell style
without going through a lot of hoops.

2) bind datagrid tables have to involve a dataset, datatable adapter, and a
binding source ...

3) I have little or no control over how the columns are displayed or
formatted when it is bound .... typical ...

I have seen examples all over Google about how to deal with it ... they are
all less than stellar and the links back to MS are horrible.

In the past 20 years dealing with grids have been good and bad ... I've
often used third party ones that just got the simple work done
that I needed to do. Has MS not learned anything in the past 20 years or
so?????????????

Sooooo ... I'd just like to use the DataGrid in a completely NON-BOUND way
.... that way I can create my own connection,
organize my data the way I want, format it the way I want ... then I can
just iterate through the resultset and load the data into the grid.

Does anyone have any examples of this, or know where I can find some????
And yes I will keep looking via Google ....

Thanks!
Tom

p.s. Maybe someone knows of a better grid than the one provided from VB.NET
pro edition?

Oct 12 '07 #1
4 2037
Personally, I think gridview saves you loads of time - but you can do it all
manually

http://forums.asp.net/p/1020163/1379019.aspx

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Tom Holmes Jr." <to*@tomholmes.netwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Does anyone else have an issue with the datagrid?

My complaints are:
1) it is much harder to change the column style, row style, or cell style
without going through a lot of hoops.

2) bind datagrid tables have to involve a dataset, datatable adapter, and
a binding source ...

3) I have little or no control over how the columns are displayed or
formatted when it is bound .... typical ...

I have seen examples all over Google about how to deal with it ... they
are all less than stellar and the links back to MS are horrible.

In the past 20 years dealing with grids have been good and bad ... I've
often used third party ones that just got the simple work done
that I needed to do. Has MS not learned anything in the past 20 years
or so?????????????

Sooooo ... I'd just like to use the DataGrid in a completely NON-BOUND way
... that way I can create my own connection,
organize my data the way I want, format it the way I want ... then I can
just iterate through the resultset and load the data into the grid.

Does anyone have any examples of this, or know where I can find some????
And yes I will keep looking via Google ....

Thanks!
Tom

p.s. Maybe someone knows of a better grid than the one provided from
VB.NET pro edition?

Oct 12 '07 #2
Tom,

Why don't you then not using the DataGridView, as I have the idea you are
talking about windows forms applications. Giving some more information
mostly will help.

Just telling that something is not good in your eyes interest almost nobody
here. We are not waiting to see you (using another connection of course) or
others promote their articles here with an introducion that something is not
good. That we have seen to often.

However if you have complaints, this website is for complaints about
Microsoft products.

http://connect.microsoft.com/

Cor

Oct 13 '07 #3
Which version ? If 2.0 try the DataGridView instead. See
http://msdn2.microsoft.com/en-us/lib...28(VS.80).aspx for details...
If not sufficient you'll have to rely on third party controls....

--
Patrice

ADAIK The DataDrid is still therre for legacy...
"Tom Holmes Jr." <to*@tomholmes.neta écrit dans le message de news:
%2****************@TK2MSFTNGP04.phx.gbl...
Does anyone else have an issue with the datagrid?

My complaints are:
1) it is much harder to change the column style, row style, or cell style
without going through a lot of hoops.

2) bind datagrid tables have to involve a dataset, datatable adapter, and
a binding source ...

3) I have little or no control over how the columns are displayed or
formatted when it is bound .... typical ...

I have seen examples all over Google about how to deal with it ... they
are all less than stellar and the links back to MS are horrible.

In the past 20 years dealing with grids have been good and bad ... I've
often used third party ones that just got the simple work done
that I needed to do. Has MS not learned anything in the past 20 years
or so?????????????

Sooooo ... I'd just like to use the DataGrid in a completely NON-BOUND way
... that way I can create my own connection,
organize my data the way I want, format it the way I want ... then I can
just iterate through the resultset and load the data into the grid.

Does anyone have any examples of this, or know where I can find some????
And yes I will keep looking via Google ....

Thanks!
Tom

p.s. Maybe someone knows of a better grid than the one provided from
VB.NET pro edition?

Oct 15 '07 #4
Thanks for the help John, the link was somewhat helpful. At least it gave
me an idea on how I wanted to go.
As has been said ... some of these Wizard/Design tools just put a lot of
crap in the application.
Then when you go to change something, everything breaks .... that's why I
like writing ALL my code and not relying on Wizards/Designers.
That's something I learned a long time ago in the MS World.

Anyway, the link listed below is kinda outdated. When I cut and pasted
that code into my app ... have the classes I couldn't find.
I bet it if it was a Windows/Desktop application, then the classes would
have existed, but since I was working on a PPC WM 5.0 application, then you
can't do OLEDB database connections. Again, I couldn't find those classes
to add.

In any event, I have a new question about the datagrid and manual creation.
With a single table in single "SELECT" sql statement, it works fine. My
next SQL query for my next grid uses a "UNION"

SELECT field1, field2, field3 FROM TableA
UNION
SELECT field1, field2, field3 FROM TableB

The query itself works fine, but when I look for DataSet.Tables(0) ... it
doesn't exist ...
I don't want to have to add both sets of data into one table ... but maybe I
can create a view in the SQL Compact Edition SDF file ...

Any help would be much appreciated! Thanks!

Tom
"John Timney (MVP)" <xy******@timney.eclipse.co.ukwrote in message
news:7Z*********************@eclipse.net.uk...
Personally, I think gridview saves you loads of time - but you can do it
all manually

http://forums.asp.net/p/1020163/1379019.aspx

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Tom Holmes Jr." <to*@tomholmes.netwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>Does anyone else have an issue with the datagrid?

My complaints are:
1) it is much harder to change the column style, row style, or cell style
without going through a lot of hoops.

2) bind datagrid tables have to involve a dataset, datatable adapter, and
a binding source ...

3) I have little or no control over how the columns are displayed or
formatted when it is bound .... typical ...

I have seen examples all over Google about how to deal with it ... they
are all less than stellar and the links back to MS are horrible.

In the past 20 years dealing with grids have been good and bad ... I've
often used third party ones that just got the simple work done
that I needed to do. Has MS not learned anything in the past 20 years
or so?????????????

Sooooo ... I'd just like to use the DataGrid in a completely NON-BOUND
way ... that way I can create my own connection,
organize my data the way I want, format it the way I want ... then I can
just iterate through the resultset and load the data into the grid.

Does anyone have any examples of this, or know where I can find some????
And yes I will keep looking via Google ....

Thanks!
Tom

p.s. Maybe someone knows of a better grid than the one provided from
VB.NET pro edition?

Oct 26 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Pietje de kort | last post by:
Hello, why is the System.Windows.Forms.DataGrid so un-customizable? I am trying to build a DataGrid that will resize it's last column when there is room left over (make it fill the total...
1
by: J | last post by:
This works well for binding a Dataset (created from an XML file) to a DataGrid for the entire 'page' table. However I would like to only grab a few rows from the 'page' table (like: select id,...
1
by: Lillian | last post by:
Hello I have a question on DataGrids In an ASP page, I bind a DataGrid to a dataset. What can I do to display only the rows in which the first column = "some_text" I can probably define another...
4
by: Patrick imbault | last post by:
Please I'm looking for the best Datagrid for an ASP.NET application in terms of functionnalities and speed. Thanks Patrick Imbault
6
by: Aaron Smith | last post by:
Is there a way to put a limit on the text size of a datagrid column? Thanks, Aaron -- --- Aaron Smith Remove -1- to E-Mail me. Spam Sucks.
10
by: Aaron Smith | last post by:
If I have a datagrid and the bound data file only have 4 rows in it, the grid will show the 4 rows. However, there is blank space below that until it reaches the bottom of the grid. Is there a way...
1
by: Aaron Smith | last post by:
How do you get the System.Windows.Forms.binding for a field that is bound to a DataGrid Control? With textboxes, it's just the bindings item property, but I can't seem to find one that works for a...
2
by: Aaron Smith | last post by:
I have a DataGrid (winforms) that is bound to a table (MSDE) that has 41,000+ records in it. The form loads relatively fast and I can scroll all of the data... However, when I click in any column...
3
by: Aaron Smith | last post by:
Is there way I can have a datagrid that is bound to a dataset display a result from a function rather than from a field in the dataset? As an example, I have a table that has a first name and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.