This code is to hide the columns in the DataGrid in WinForms Application.
DataGridTableStyle ColHidStyle = new DataGridTableStyle();
ColHidStyle.MappingName = "HideTest";
dataGrid1.TableStyles.Add(ColHidStyle);
ColHidStyle.GridColumnStyles["Modifier"].Width = 0;
or other way is
objDs.Tables["myTableName"].Columns["myColumnName"].ColumnMapping = MappingType.Hidden;
Subscribe to:
Post Comments (Atom)
ASP.NET MVC - Sport Facility Booking system
The project relies on some external service providers. Thus accessing them via their API requires authentication. An API Key need to be su...
-
"The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, II...
-
Excellent outcome by some of the Microsoft Technology community influencers. CAML.NET IntelliSense for SharePoint To build a SharePoint feat...
-
The project relies on some external service providers. Thus accessing them via their API requires authentication. An API Key need to be su...
1 comment:
It is about removing record from dataset
when i removed a row from the dataset(datset.tablename.rows.remove(row))
after that when i saved a new record it saved on the removed rows position like when i removed the 2nd row and when i am saving the 5th row it is saving on the 2nd position.I already used the dataset.table.clone command
Post a Comment