Hi all,
I have a set of custom properties defined in a class and want to assign this to each and every datagridview row that can allow users to add new rows during runtime.I'm unable to set properties efficiently,am fairly new to c#.net and appreciate any inputs on this...
Vish
Loading
Vish DavPosted May 23, 2011, 2:04 AM
I've attached a project with a datagridview and propertygrid.
Now,for each row added to the datagridview,I want a set of properties displayed and retained in the propertygrid.
THe set of properties have also been designed.
My only problem right now is that,I'm unable to set the propeties changed for each row during runtime
Sam HobbsPosted May 23, 2011, 1:42 AM
Vish DavPosted May 23, 2011, 12:14 AM
This is my functional requirement...I'm trying to create a table from the front end..i capture fieldname,datatype and size in the datagridview...all this information is enterd by the user,but I want the user to have the option to input additional features to each field...like default value..these additional features I wanted to set in a property grid..these proerties lets say for now..just DefaultValue has no variable and just needs to accept integers and needs to be created for every row entered in the datagridview,for each row.Hope I made sense..Let me know if you anymore inputs..Thanks for the patience.
Vish
Sam HobbsPosted May 22, 2011, 11:15 PM
Of course I don't know enough about what you need to do to help even if I was an expert. You don't explain what the variables are that affect the properties. Does the determination of properties of a field depend on the contents of other fields? Do they depend on data in other records/rows? Answers to these questions determine how simple or complex the solution might be.
Vish DavPosted May 22, 2011, 10:52 PM
I'm using the datagridview for user entry and want each row to have custom properties for every row entered..
thus I cannot have a datasource bound to it...
I cannot know how many rows the user enters...any help much appreciated..
Sam HobbsPosted May 21, 2011, 2:36 AM
Is the data stored in a database? If so then a typical solution is to bind the data source such as a database table to the UI such as a DataGridView. A very simple sample of that is in my article Database Table Update in a DataGridView without Writing Code.
Posted May 20, 2011, 2:10 PM