473,507 Members | 5,060 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding custom control in DataGrid

Hi,

I would like to display a Checkbox and a string value in each cell of
DataGrid. I am trying to bind it with Custom user control consist of a
Textbox and a check box. The size of DataGrid (both rows and columns) are not
of fixed size. I am using Visual Studio 2002/2003 IDE for development. Are
there any extra feature for this availble in VS 2005?

Thanking you.
Dec 28 '05 #1
2 5223
Mandar B,

In .NET 2.0 (which VS.NET 2005 is the IDE for), you can use the
DataGridView, which has a different model, and makes it easier to host
custom controls in columns.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mandar B" <Mandar B@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
Hi,

I would like to display a Checkbox and a string value in each cell of
DataGrid. I am trying to bind it with Custom user control consist of a
Textbox and a check box. The size of DataGrid (both rows and columns) are
not
of fixed size. I am using Visual Studio 2002/2003 IDE for development. Are
there any extra feature for this availble in VS 2005?

Thanking you.

Dec 28 '05 #2
Thank you very much Nicholas for reply.
But VS.Net 2005 is not possible right now. In that case, is it possible to
use DataGridView with .Net 2.0 installed on Windows XP with VS.Net 2003 IDE?
Is there any other solutions to this issue?

Thanks & Regards,
Mandar B

"Nicholas Paldino [.NET/C# MVP]" wrote:
Mandar B,

In .NET 2.0 (which VS.NET 2005 is the IDE for), you can use the
DataGridView, which has a different model, and makes it easier to host
custom controls in columns.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mandar B" <Mandar B@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
Hi,

I would like to display a Checkbox and a string value in each cell of
DataGrid. I am trying to bind it with Custom user control consist of a
Textbox and a check box. The size of DataGrid (both rows and columns) are
not
of fixed size. I am using Visual Studio 2002/2003 IDE for development. Are
there any extra feature for this availble in VS 2005?

Thanking you.


Dec 29 '05 #3

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

Similar topics

2
2004
by: HKM | last post by:
Hello ! I have extended DataGrid Control as per my requirements. My questions is how to add this Custom Data Grid to the Form (that I want this customized grid to appear). Following are the...
4
1728
by: Chris | last post by:
I think I must be going crazy. All I want to do is add a button to the bottom of a datagrid which will later run some code for a web based project. I've created a custom control that inherits from...
3
4856
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
0
1243
by: sonic | last post by:
hello, I have this custom datagrid control, that inherits from DataGrid. In addition to datagrid, I am adding a "status" table under it, and another html button, which will trigger a new row. ...
1
1497
by: Sam Samnah | last post by:
Hi Everyone. It has been a long time since my last post. Nevertheless, I have built a custom server control that allows a user to edit text, bolding, italics strike though table insertion and...
1
4213
by: sianan | last post by:
I tried to use the following example, to add a checkbox column to a DataGrid in an ASP.NET application: http://www.codeproject.com/aspnet/datagridcheckbox.asp For some reason, I simply CAN'T get...
1
3841
by: Robert Batt | last post by:
hello, I would like to add a rich text box to a datagrid. does anyone know of any code samples, or any other way where I can display a field in a datagrid and allow the user to click on it and enter...
3
3133
by: Fao, Sean | last post by:
I have a DataGrid that I'm adding CheckBox controls to at runtime (in the code behind) and I'm not sure if I'm doing it correctly. First of all, I noticed that the MyDataGrid.Columns.Add() method...
1
1431
by: rn5a | last post by:
I have created a custom server control which is actually a Button clicking which prompts a user with a JavaScript confirm message asking him whether he would like to proceed or not. If he clicks...
0
7223
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
7110
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
7314
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
7372
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...
1
7030
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
7482
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.