Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / November 2003

Tip: Looking for answers? Try searching our database.

Datagrid row remove

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
COntaIS - 14 Nov 2003 10:20 GMT
How can I remove a row from a datagrid ?
Miguel Carranca (Hotmail) - 14 Nov 2003 10:35 GMT
You have a problem here (i think)... Using DataGrid means that you have a
database (table) connected. So... or you remove data from database or insert
a filter into database.

Another way to resolve this.... try to build a UserControl using ListView to
grab all data you want and to have full control of data and look.

Miguel Angelo Carranca

> How can I remove a row from a datagrid ?
COntaIS - 14 Nov 2003 10:50 GMT
Thnaks Miguel, but I can´t do it.
My datagrid have many formats (cell colours)  that I can have on DataTable.
If I remove a row from a DataTable, when I do a DataBinding, I lost my
formats.

How can I only remove a row ?

> You have a problem here (i think)... Using DataGrid means that you have a
> database (table) connected. So... or you remove data from database or insert
[quoted text clipped - 6 lines]
>
> > How can I remove a row from a datagrid ?
Miguel Carranca (Hotmail) - 14 Nov 2003 11:41 GMT
Hi,

OK...

So the only solution is: create you own DataGrid control, based on ListView
or on DataGrid, using OnPaint event to control row visiblility.

The other solution.... pay for a new DataGrid from 3th party manuf. :)

PS: if you need help to create a DataGrid or something else, write me at
mcarranca@hotmail.com

Miguel Angelo Carranca

> Thnaks Miguel, but I can´t do it.
> My datagrid have many formats (cell colours)  that I can have on DataTable.
[quoted text clipped - 15 lines]
> >
> > > How can I remove a row from a datagrid ?
COntaIS - 14 Nov 2003 17:09 GMT
Eureca !

datagrid.Item[x].Visible = false;

Thanks !

> Hi,
>
[quoted text clipped - 32 lines]
> > >
> > > > How can I remove a row from a datagrid ?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.