HighTechTalks DotNet Forums  

Unbound DataGridView and DataGridViewComboBoxColumn

Dotnet Data Tools microsoft.public.dotnet.datatools


Discuss Unbound DataGridView and DataGridViewComboBoxColumn in the Dotnet Data Tools forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?RGF2aWQ=?=
 
Posts: n/a

Default Unbound DataGridView and DataGridViewComboBoxColumn - 08-01-2007 , 10:36 AM






Hello all,

Is it possible to have an Unbound DataGridView's DataGridViewComboBoxColumn
have different data for each line of the DataGridView?

All of the DataGridViewComboBoxColumn's data will be of the same type.
There are instances, though where some of the itmes in the
DataGridViewComboBoxColumn's should not be available.

That is, if the DataGridViewComboBoxColumn has the possibility of having 10
total items in it: line 1 contains 5 of 10; line 2 contains 3 of 10; line 3
contains 10 of 10; and line 4 contains 0 of 10.

--
Best Regards

"Failure is the opportunity to begin again more intelligently" – Henry Ford

Reply With Quote
  #2  
Old   
=?Utf-8?B?TWFuaXNoIEJhZm5h?=
 
Posts: n/a

Default RE: Unbound DataGridView and DataGridViewComboBoxColumn - 08-10-2007 , 12:30 AM






Hi,
you wil be able to do it by subscribing to RowDataBound or ItemCreated event
of GridView.Google for "RowDataBound event ASP.NET 2.0 C#" and you will get
articles/tutorials on how to use RowDataBound event
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"David" wrote:

Quote:
Hello all,

Is it possible to have an Unbound DataGridView's DataGridViewComboBoxColumn
have different data for each line of the DataGridView?

All of the DataGridViewComboBoxColumn's data will be of the same type.
There are instances, though where some of the itmes in the
DataGridViewComboBoxColumn's should not be available.

That is, if the DataGridViewComboBoxColumn has the possibility of having 10
total items in it: line 1 contains 5 of 10; line 2 contains 3 of 10; line 3
contains 10 of 10; and line 4 contains 0 of 10.

--
Best Regards

"Failure is the opportunity to begin again more intelligently" – Henry Ford

Reply With Quote
  #3  
Old   
=?Utf-8?B?RGF2aWQ=?=
 
Posts: n/a

Default RE: Unbound DataGridView and DataGridViewComboBoxColumn - 08-10-2007 , 08:28 AM



Thank you for your help Manish.

--
Best Regards

"Failure is the opportunity to begin again more intelligently" – Henry Ford




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.