thomas10001 Posted January 30, 2005 Posted January 30, 2005 Hi I have a DataGrid with a DataSet as the DataSource. But I want to hide :cool: or supress the * row. There is a property allowNew but it seems that it is only available if the DataSource is a DataView. Is there a way to hide/supress the * row when having a DataSet as DataSource? Thomas Quote
Alistair Posted January 31, 2005 Posted January 31, 2005 This is just an idea. Make the entire datagrid readonly, then use the following article http://msdn.microsoft.com/smartclient/default.aspx?pull=/library/en-us/dnwinforms/html/datagridcolumnstyle2.asp To create a DataGridTextBoxColumn that ignores the readonly state. Might work. Quote
donnacha Posted February 1, 2005 Posted February 1, 2005 No Just add code similar to the following when you are settion up the tablestyle and away you go... Dim cm As CurrencyManager = BindingContext(dgrid.DataSource, dgrid.DataMember) Dim dv As DataView = cm.List dv.AllowNew = False Quote Hamlet
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.