Answered by:
Asp.net web control

Question
-
Hi,
I'm going to have a web control.in this control I have a gridview and I want to have a editor peopery for grid view collection,
and with this propery can add column to grid view data bounded.I need help?
I'v written :
private List<DataColumn> _columns;
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[NotifyParentProperty(true)]
public List<DataColumn> Columns
{
get
{
if (null == _columns)
_columns = new List<DataColumn>();
return _columns;
}
}but I want a property like grid view collection.
please help me.
thx.
- Moved by Martin_Xie Monday, October 31, 2011 4:01 AM Redirect to ASP.Net Forum for better support. (From:Visual C# Language)
Monday, October 24, 2011 12:44 PM
Answers
-
Hi,
My understanding is that you would like to use a design time column editor similar to the Property Grid built into VS ? Try perhaps http://propertygrid.codeplex.com/ (not sure how well it mimics the property grid especially for columns collections).
Else please ask a particular question rather than asking for general help so that we can better understand what is the exact point on which you have a problem...
Do you miss a web control ? Or do you have some coding issue ?
Please always mark whatever response solved your issue so that the thread is properly marked as "Answered".- Edited by Patrice ScribeMVP Monday, October 24, 2011 1:15 PM
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, November 3, 2011 5:28 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, November 16, 2011 10:19 PM
Monday, October 24, 2011 1:15 PM -
Hi princess,
Welcome to MSDN Forum.
You'll need to post it in the dedicated ASP.Net Forum http://forums.asp.net for more efficient responses, where you can contact ASP.NET experts.
ASP.NET Forums › Advanced ASP.NET › Custom Server Controls Forum
All about building ASP.NET server controls.
ASP.NET Forums › General ASP.NET › Web Forms Data Controls Forum
Data-bound controls such as the GridView, DataGrid, DataList, FormView, DetailsView, Repeater, and Microsoft Chart
Martin Xie [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, November 3, 2011 5:28 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, November 16, 2011 10:19 PM
Wednesday, October 26, 2011 9:29 AM
All replies
-
Hi,
My understanding is that you would like to use a design time column editor similar to the Property Grid built into VS ? Try perhaps http://propertygrid.codeplex.com/ (not sure how well it mimics the property grid especially for columns collections).
Else please ask a particular question rather than asking for general help so that we can better understand what is the exact point on which you have a problem...
Do you miss a web control ? Or do you have some coding issue ?
Please always mark whatever response solved your issue so that the thread is properly marked as "Answered".- Edited by Patrice ScribeMVP Monday, October 24, 2011 1:15 PM
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, November 3, 2011 5:28 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, November 16, 2011 10:19 PM
Monday, October 24, 2011 1:15 PM -
thx for your reply.
you know I want something like columns property for gridview in my server control
Tuesday, October 25, 2011 1:20 PM -
Hi princess,
Welcome to MSDN Forum.
You'll need to post it in the dedicated ASP.Net Forum http://forums.asp.net for more efficient responses, where you can contact ASP.NET experts.
ASP.NET Forums › Advanced ASP.NET › Custom Server Controls Forum
All about building ASP.NET server controls.
ASP.NET Forums › General ASP.NET › Web Forms Data Controls Forum
Data-bound controls such as the GridView, DataGrid, DataList, FormView, DetailsView, Repeater, and Microsoft Chart
Martin Xie [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, November 3, 2011 5:28 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, November 16, 2011 10:19 PM
Wednesday, October 26, 2011 9:29 AM