473,671 Members | 2,211 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Imitating a Webform in a Winform

Hi;

Can you add a column of button controls to a winform datagrid ?

I have a form with three independant grids.

I would like to add buttons i.e. update, add buttons at the end of each row.

Is this possible in a WINFORM in vb.net 2003 ?

I wish that i could use a Webform but I can't access IIS.

Thanks
--
Gordon
Jul 11 '06 #1
3 1886
yes you can do this. In fact you can use any control in VS as a control
in your data grid.
this is quite common, although most examples will show you how to use a
date time picker in a data grid. By default a datagrid supports textbox
and checkbox controls, but you can inherit from a specific column class
and create your own quite easily.

I just can't remember what that class is! I'm sure a good google will
find you answers... I have to go home now though
Gordon wrote:
Hi;

Can you add a column of button controls to a winform datagrid ?

I have a form with three independant grids.

I would like to add buttons i.e. update, add buttons at the end of each row.

Is this possible in a WINFORM in vb.net 2003 ?

I wish that i could use a Webform but I can't access IIS.

Thanks
--
Gordon
Jul 11 '06 #2
Are you sure about this in a Windows form, using VS 2003 ? I know that you
can use a dataviewgrid control in the new version of VS and it has a lot more
programmable features.

I
--
Gordon
"Steven Nagy" wrote:
yes you can do this. In fact you can use any control in VS as a control
in your data grid.
this is quite common, although most examples will show you how to use a
date time picker in a data grid. By default a datagrid supports textbox
and checkbox controls, but you can inherit from a specific column class
and create your own quite easily.

I just can't remember what that class is! I'm sure a good google will
find you answers... I have to go home now though
Gordon wrote:
Hi;

Can you add a column of button controls to a winform datagrid ?

I have a form with three independant grids.

I would like to add buttons i.e. update, add buttons at the end of each row.

Is this possible in a WINFORM in vb.net 2003 ?

I wish that i could use a Webform but I can't access IIS.

Thanks
--
Gordon

Jul 11 '06 #3
Are you sure about this in a Windows form, using VS 2003 ?

Yes I am sure. I have not moved to VS2005 yet and have implemented more
than a few applications that use many different controls from buttons
to drop down lists and more in a datagrid.

And there are other options also besides using buttons. You could add a
context menu that offered 3 menu options (Add, Edit, Delete). You can
be much more creative in win forms. Perhaps you could have the whole
row automatically editable on a mouse over and then have the row
automatically save when the mouse leaves that particular row.

This is what a quick google for "C# datagrid column button" revealed:
http://www.xmlfox.com/CSsamples.htm#6

That has EXACTLY what you want to do.

Jul 11 '06 #4

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

Similar topics

0
1833
by: Nick P | last post by:
Hi I have a webform app with an embedded winform class library (to make use of drag & drop, treeviews etc..). My problem is this, I need to click a LinkLabel on the winform and call up an existing webform in my webform project as a popup window. Does any one know if this is possible? I was trying to use the EnvDTE namespace and Navigate but i can't seem to get it to work. nick
0
1269
by: Thom Little | last post by:
..NET Framework 1.1 I have a C# WinForm that invokes a C# WebForm using System.Diagnostics.Process.Start( ) to invoke the default browser and access a specific URL. This works great but I can not provide status information from the WebForm to the WinForm. How can I modify this approach to permit the WebForm to return status information to the WinForm?
6
2647
by: Zingam | last post by:
Is it possible to insert a WinForm in a WebForm? I'd like for example to insert a managed directx viewer in a webform, that would display 3d graphics on the form? Is this possible? Regards, Z.
9
12891
by: Peter Afonin | last post by:
Hello: I need to clear all textboxes on the webform after the data has been submitted. How can I do this in one step? I found a C# code: // get a reference to your form control Control frm = FindControl("YourFormID"); foreach(Control ctrl in frm.Controls)
2
1878
by: Matt Theule | last post by:
I need to be able to allow users to drag files to a list box on a web page. To this end, I created a Windows Control and hosted it in a WebForm. When the file is dropped onto the listbox, the path of the file is truncated down to 8.3 format (with the ~1 at the end). When the Windows control is hosted in a windows form (for testing purposes) the full path is displayed. Is there some setting that will allow the full path to be displayed...
4
1281
by: acool | last post by:
I want the ability to fill in the public properties of a given class in a webform pump that class into a session variable and then recreate a new instance of that class in order to grab those same properties. The only thing that has me stumped is how to grab the appropriate session object in order to grab th right class. Can this be done or is there a better way to do this?
7
5683
by: Dean Slindee | last post by:
I would like to hear some practical comments about how to decide whether a new application becomes a Winform vs a Webform application. Would you say that every app should be, by default, a Winform app unless it positively cannot be (for some technical reason). Or vice-versa? Obviously, Visual Studio could never be a Webform app because it requires a lot of CPU cycles. It appears to me that there is a broad sort of continuum in...
0
834
by: Gordon | last post by:
Hi; Can you add a column of button controls to a winform datagrid ? I have a form with three independant grids. I would like to add buttons i.e. update, add buttons at the end of each row. Is this possible in a WINFORM in vb.net 2003 ?
9
4035
by: Victory | last post by:
Hi, Our group has to develop a new UI. We are using a third party and have them develop this since we don't have a lot of experience in doing this. We want it to be accessible through the web browser specifically Internet Explorer on Windows 2003 Server. We want them to initially build it using WinForm i.e. no browser just a windows application. How difficult will it be to convert a windows application to a WebForm? Are there points that...
0
8476
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8393
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8598
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6223
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5695
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4224
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2810
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.