Hello
When ultragrid datasource refreshs the valuelist items which are selected before refreshing is returning to default state.as,not selected any.So,every time when datasource is refreshing you have to select every valuelist items again.Please help/
Thanks in advance.
Hello Ilkin,
What you could do is to keep the selected item's indices in some array and check those items later. How are you creating and assigning the ValueList? If you are doing it in the 'InitializeLayout' event of the 'WinGrid' control, it would change to a new instance every time and thus "forget" about the checked items. So you could create and assign the 'ValueList' in the 'Load' event of the Form for example.
Hello,
I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.
Hello Boris.
No I didnt solve.When my grid datasource(It is datatable) refreshs the selected valuelist items return to default state.I select rows from first grid they adds to second grid .through datatable.
for(int i=0;i<grid.rows.count;i++)
{
DataRow row = dt.NewRow();
row[0]=grid.rows[i]["field"];
dt.rows.Add(row);
}
And this datatable is datasource of second grid.which have the valuelists too.
I am not sure what exactly is your scenario. Can you post a sample project and I will try to make it work for you? Or give me some specific requirements so I can create a new project for you and attach it to my next post here?
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.