We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

grid column

Thread ID:

Created:

Updated:

Platform:

Replies:

68731 Sep 28,2007 09:25 PM UTC Oct 19,2007 09:47 PM UTC ASP.NET Web Forms (Classic) 4
loading
Tags: GridGroupingControl
Hrvoje Voda
Asked On September 28, 2007 09:25 PM UTC

I'm using this code to get data into grid.
I would like to show only data in grid without column name. How?

SqlConnection conn = null;
conn = new
SqlConnection(sConn);
conn.Open();
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "dbo.[GetClanImeiPosudbe]";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Connection = conn;
cmd.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Sifra", System.Data.SqlDbType.Int, 16));
cmd.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Ime", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Output, true, ((System.Byte)(0)), ((System.Byte)(0)), "serverName", System.Data.DataRowVersion.Current, null));
cmd.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Prezime", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Output, true, ((System.Byte)(0)), ((System.Byte)(0)), "databaseName", System.Data.DataRowVersion.Current, null));

cmd.Parameters["@Sifra"].Value = txtSifra.Text;
cmd.ExecuteNonQuery();

grid.Grid.DataMember = "";


SqlDataAdapter adap = new SqlDataAdapter();
adap.SelectCommand = cmd;
DataTable dt = new DataTable();
adap.Fill(dt);
grid.Grid.DataSource = dt;

Suresh Sekarean [Syncfusion]
Replied On October 8, 2007 01:26 PM UTC

Hi Hrvoje,

Column headers can be hidden using the property, 'ShowColumnHeaders' of GridGroupingControl which is available in the TopLevelGroupOptions Category.

Please refer the below code snippet.

[C#]

this.GridGroupingControl1.TopLevelGroupOptions.ShowColumnHeaders = false;

Thanks for using Syncfusion products.

Please let us know if you need more info.

Regards,
Sureshsekaran.

Hrvoje Voda
Replied On October 9, 2007 02:12 PM UTC

I don't have that option under grid.

Suresh Sekarean [Syncfusion]
Replied On October 19, 2007 02:17 AM UTC

Hi Hrvoje,

Please let us know the Syncfusion Essential Studio Version that you have used.

Please refer the below sample which illustrates hiding the column header of GridGroupingControl and let us know if you have any issues.

http://websamples.syncfusion.com/samples/Grid.Web/5.2.0.25/F68731/main.htm

Sorry fro the inconvenience caused.

Regards,
Sureshsekaran.

Hrvoje Voda
Replied On October 19, 2007 09:47 PM UTC

I'm using 4.2.0.37 version.
I still can't get it to work without header column name.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;