all groups > dotnet windows forms databinding > november 2006 >
You're in the

dotnet windows forms databinding

group:

datagrid displays closed header


datagrid displays closed header frank
11/16/2006 6:20:29 PM
dotnet windows forms databinding:
Having a problem with the initial display of a datagrid control in my c# app
created with vstudio 2003. The control comes up with only a header
containing an arrow and a 'plus' box, clicking the plus drops down the name
of the stored procedure the select command is bound to. Clicking the stored
procedure expands the datagrid control to display the rows and columns.

You never see the stored procedure name again, after clicking it once.

I want the row and column display by default when the control appears, I
don't want to have to click the stored procedure name.

Other datagrid controls in my app don't have this problem. Any advice why
this is happening and how to fix it?
-Frank
http://www.inwa.net/~frog/

Re: datagrid displays closed header Bart Mermuys
11/16/2006 7:06:12 PM
Hi,

[quoted text, click to view]

Don't forget to set DataGrid.DataMember when DataGrid.DataSource is a
DataSet. Set DataGrid.DataMember to the stored procedure name.

HTH,
Greetings


[quoted text, click to view]

Re: datagrid displays closed header frank
11/16/2006 7:21:29 PM
[quoted text, click to view]
YES that fixed it. Many thanks. -F

AddThis Social Bookmark Button