|
|
|
start date: Wed, 1 Aug 2007 07:36:00 -0700,
posted on: microsoft.public.dotnet.datatools
back
| Thread Index |
|
1
David
|
|
2
Manish Bafna
|
|
3
David
|
Unbound DataGridView and DataGridViewComboBoxColumn
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
Date:Wed, 1 Aug 2007 07:36:00 -0700
Author:
|
RE: Unbound DataGridView and DataGridViewComboBoxColumn
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:
> 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
Date:Thu, 9 Aug 2007 21:30:02 -0700
Author:
|
RE: Unbound DataGridView and DataGridViewComboBoxColumn
Thank you for your help Manish.
--
Best Regards
"Failure is the opportunity to begin again more intelligently" – Henry Ford
Date:Fri, 10 Aug 2007 05:28:02 -0700
Author:
|
|
|