Hi
i have a GridEX in my form
How can i empty my GridEX after submit?!
Thanks....
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Subhendu DeRank #1,108 · 1.7K reputationPosted Dec 14, 2010, 5:17 AM EST
C#
==
VB.NET
=====
Thanks.....
shima32 reputationPosted Dec 14, 2010, 6:14 AM EST
unfortunately, GridEx dosent have this method(DataBind)
Subhendu DeRank #1,108 · 1.7K reputationPosted Dec 14, 2010, 6:17 AM EST
Is there any help wiki page for this 3rd party control?
Thanks.....
shima32 reputationPosted Dec 14, 2010, 8:51 AM EST
For example:
gridEX1.KeepRowSettings = true;
gridEX1.DataSource = null;
gridEX1.DataMember = "AccountRows";
gridEX1.NewRowFormatStyle.Reset();
gridEX1.DataSource = dataSetAccounting;
Accounting2.DAL.DataSetAccountingTableAdapters.AccountRowsTableAdapter adapter = new Accounting2.DAL.DataSetAccountingTableAdapters.AccountRowsTableAdapter();
gridEX1.SetDataBinding(adapter,"");
gridEX1.RetrieveStructure();
gridEX1.EmptyRows = true;
gridEX1.ActiveControl = Activate();
gridEX1.Refresh();
gridEX1.AllowAddNew = Janus.Windows.GridEX.InheritableBoolean.True;
Suthish NairRank #92 · 22.8K reputationPosted Dec 15, 2010, 6:12 AM EST
shima32 reputationPosted Dec 16, 2010, 8:12 AM EST
I couldnt use this property:
this.gridEX1.ClearItems();Beacuse i use DataSource property and if i usethis.gridEX1.ClearItems(); i get this error message:ClearItems can not be used when BoundMode is Bound. Clear the items directly in the datasource or change BoundMode to Unbound.Suthish NairRank #92 · 22.8K reputationPosted Dec 16, 2010, 8:36 AM EST
I never used this control.
refer link, might helps you.
Sam HobbsRank #107 · 20.5K reputationPosted Dec 16, 2010, 9:17 AM EST
The table is AccountRows, correct? When you submit the data, what happens to the data in AccountRows? Conceptually speaking, the data that has been submitted should be deleted from AccountRows. Does that happen? If not, then can it happen?
shima32 reputationPosted Dec 17, 2010, 11:00 AM EST
When i submit my data , every thing in GridEX adds in AccountRows
And i want to clear my GridEX for next add
thanks...
Sam HobbsRank #107 · 20.5K reputationPosted Dec 17, 2010, 12:13 PM EST
shima32 reputationPosted Dec 17, 2010, 5:56 PM EST
i just want to add in AccountRow and refresh GridEX in evry insert operation...
shima32 reputationPosted Dec 17, 2010, 9:27 PM EST
I find out the answer!
accountRowsTableAdapter.FillByAccountID(dataSetAccounting.AccountRows, -1);
ALI MOHAMMAD BAHMANYAR6 reputationPosted Feb 4, 2011, 10:31 AM EST
shima32 reputationPosted Feb 5, 2011, 8:23 PM EST
ALI MOHAMMAD BAHMANYAR6 reputationPosted Feb 6, 2011, 9:10 AM EST