471,348 Members | 1,170 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

Adding row to databound Datagridview

Hello,

I've got a DataGridView that I have bound to a stored procedure. I'm using
LINQ, so this is basically what I have (this was created using SQLMetal):

public ISingleResult<StoredProcedure1Result>
StoredProcedure1([Parameter(DbType="Int")] System.Nullable<intparam1)
{
IExecuteResult result = this.ExecuteMethodCall(this,
((MethodInfo)(MethodInfo.GetCurrentMethod())), param1);
return ((ISingleResult<StoredProcedure1Result>)(result.Re turnValue));
}
Then I just set the datasource for my datagrid:

datagridview1.DataSource = StoredProcedure1(param);
My question is this. I want to be able to add a row to the datagrid. How can
I do that? I don't want to add the data to the database until the user
submits the form. Could someone point me in the right direction?

Thanks for any help, I really appreciate it.

Thanks,
Nick
Jun 27 '08 #1
0 1194

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Jakob Lithner | last post: by
6 posts views Thread by David Veeneman | last post: by
7 posts views Thread by =?Utf-8?B?aWxy?= | last post: by
reply views Thread by =?Utf-8?B?TWFya3VzIEhvZmVy?= | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.