WebBusinessBindingSource and method add


Author
Message
Olivier
Olivier
StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)
Group: StrataFrame Users
Posts: 96, Visits: 806
Hello,

I use the Telerik RadGrid for a long times , only readonly view.

I have a question about a good way, my grid is link with WebBusinessBindingsource
and it's work very well.

I have a button in my WebForm to Add a record, when i start
This.MyBo.Add()
This.MyRadGrid.Databind();

The grid contain my old Fill Data on my Businessobject.

How can i get a empty grid when i want to add a record.

i hope to be explain.

Thanks
Olivier,

==============================================
Asp.net C# - Strataframe - telerik
==============================================
Edited 12 Years Ago by Olivier
Reply
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Are you wanting to only show that 1 empty row when you're adding a new record?  If so, you will need to call this.MyBO.Clear() before you call the Add().  If this.MyBO has a static backing field, then it's probably already filled with data on the post back.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search