Datagrid buttons

L

Lina

Hi,

Can anyone tell me if it is possible to add link buttons
to a datagrid that has its source set to a datatable that
i have created? i.e i want the user to be able to select a
room from various comboboxes and textboxes on my form.
when they are satisfied they press OK. the row is then
displayed in my datagrid. I now automaticcaly want 2 link
buttons to appear next to the row that allows the user to
delete the row or edit it.

Additionally i also want a third button to appear ONLY IF
the user has selected specific meals to be delivered to
the room. (i.e a view meals link button).

Is this possible and relatively simple to do? does anyone
know of any useful articles or code samples that may help
me.

I would appreciate any feedback.

thx for your time.
btw i am using vb.net and im develping a windows app.
 
J

Jan Tielens

Check out the (Free) ExtendedDataGrid:
http://dotnet.leadit.be/extendeddatagrid

The default System.Windows.Forms.DataGrid in the .NET Framework is a little
bit limited in functionality. Luckily the architecture of this DataGrid
allows adding functionality and customization. The ExtendedDataGrid adds
some of the basic functionality, that's not available in the default
DataGrid. This functionality includes:

a.. ComboBox column
b.. MultiLine TextBox column
c.. Image column
d.. Formatted Text column
e.. LinkLabel column
f.. Calculated field column
g.. Full Windows XP Themes Support
h.. CustomControl column NEW, See Below
i.. ...
The ExtendedDataGrid is free to use in any application! For a detailed
description, check out the feature list. Also make sure to check out the
Latest News (RSS Feed) because new columns will be added in the near future!
If you have any problems, bugs, feature requests, please contact me! The
latest version can be downloaded from the Releases page.


--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 
L

Lina

Thx Jan,

this is exactlt what i was looking for.
I have downlaoded the file extendedDataGrid file but im
alittle unsure as to how i am to use this?
How do i make it appear in the VB.NET IDE??
Im not sure on how i can integrate this into my
application.
I have tried to look at the help files but it will not
let me download it. it keeps freezing!

Thx for you help.
 
J

Jan Tielens

Download the Leadit.ExtendedDataGrid_0_1_2_1.zip file (from the releases)
and unzip the contents locally on your harddisk. The go the Visual
Studio.NET and open your windows.forms application. Make sure you've opened
a form, so your toolbox (with the other controls) is visible. Then from a
Windows Explorer drag the Leadit.ExtendedDataGrid.dll and drop in in the
ToolBox in Visual Studio.NET.

Another way would be by right-clicking somewhere on the ToolBox and choose
"Add remove items...". Then navigate to the dll.

Let me know if you have any problems!

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 
L

Lina

Hi Jan,

I have unzipped the file and have dragged the
Leadit.ExtendedDataGrid.dll into the toolbox. However the
control is not visible to select from the toolbox!!
instead a new tab appears with a treeview
containing 'version' and 'Neutral'

What do i do from here? how do i referencethe control?

thx
 
J

Jan Tielens

Did you try this too?
Another way would be by right-clicking somewhere on the ToolBox and choose
"Add remove items...". Then navigate to the dll.

If you try a demo application, does it work?

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 
L

Lina

Hi Jan,

I have tried both methods. I right clicked the toolbox and
selected customise toolbox.
I arrive at a screen with 2 tabs. One for adding a COM
component and the other tab for adding a '.NET Framework
component'.

When i browse to the ExtendedDataGrid.dll for in the 'COM
componets tab i get an error message stating...
'File 'C:\Documemts and
settings\p3patel\desktop\leadit.ExtendedDataGrid.dll
cannot be addded to the toolbox. It was not recognised as
a COM server.

when i browse to the ExtendedDataGrid.dll from the '.NET
Framework component' i get the following message....
Strong name validation failed for
assembly 'LeadIt.ExtendedDtaGrid.dll'.

what am i doing wrong?
Are there any installtion documents for this control??
It seems like the ideal tool for me at the moment so it
would be great to use it.

Thx
 
J

Jan Tielens

Which version are you using? Did you try the demo application?

There seem to be other people who have problems (with other controls):
http://groups.google.be/groups?q=Strong+name+validation+failed+for+assembly&
hl=nl&lr=&ie=UTF-8&oe=UTF-8&selm=MIYHHNl8BHA.2300%40cpmsftngxa07&rnum=2

You can try using "Sn -Vr <assembly>" by registering the assembly for
verification skipping. Does it help? Also try a Repair of Visual Studio
NET.


--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 
L

Lina

Hi Jan,

I have tried the demo application. When i try and open the
ExtendedDataGridDemo.sln file i get a message stating...
'The selected file is not a valid visual studio solution
file.'

If u mean what version of VB.NEt i am using... 2002
The version of your control i am using is the one diplayed
in the 'relaeses' page....
ExtendedDataGrid 0.1.2.1 (12 Jan. 2004)

This is a fresh copy of vs.net that i have installed. I
have only had it for a short time and have just got round
to using it. The installation was error free. I have tried
on on my friends installation with a differnet copy of
VS.NET and she is getting the same error as well!!

U mentioned a resolution in your last post about....
using "Sn -Vr <assembly>" by registering the assembly for
verification skipping.

How do i go about doing this??

thx
 
J

Jan Tielens

IC! You are using the .NET 1.0 framework and Visual Studio .NET 2002.
Unfortunalty the ExtendedDataGrid is for the 1.1 Version of the Framework
and VS.NET 2003.

Sorry for the inconvenience...

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top