Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi everybody i need some help regarding my project actually i am using a data grid view control in my project and this data gridview is set to data reader now what i want is to just limitise the no of columns the grid view showing.

Actually i have 4 columns in my data base and i want just 2 of them to be display on the data grid...

 

Here is the code.

 

private void Form1_Load(object sender, EventArgs e)

{

 

DBHandler ObjDBHandler = new DBHandler();

dataGridView3.DataSource = ObjDBHandler.GetAllPrograms();

 

}

 

can any body tell me how to customise the data grid view control in the following context

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...