473,396 Members | 1,713 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,396 software developers and data experts.

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 1869
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
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...
0
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...
6
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,...
9
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...
2
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...
4
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...
7
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...
0
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....
9
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...
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: 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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.