BestFit / ChooseColumns in NDataGridView control


Author
Message
Tomas Vera
Tomas Vera
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)
Group: Forum Members
Posts: 4, Visits: 1
Thanks!! This was exactly what I implemented. A NListBox with the column in the Tag property.

Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hello Tomas,

To perform best fit for specific column you should call
nDataGridView1.AutoResizeColumn(int columnIndex);

To perform best fit for all columns you should call
nDataGridView1.AutoResizeColumns();

Choose Columns dialog is implemented as an internal class and it cannot be displayed from other place than context menu.
However, this dialog is basically a form with nListView control which displays all columns of a NDataGridView as list items.
Each item's Tag property is set to the respective column, and when you check or uncheck an item the respective column becomes visible or not.

Hope this helps.




Best Regards,
Nevron Support Team


Tomas Vera
Tomas Vera
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)
Group: Forum Members
Posts: 4, Visits: 1
Hello,
I am using a NDataGridView control to display some data.

If I right-click a column header, a context-menu appears that allows me to ChooseColumns, apply BestFit and Order columns.

However, it seems I am not able to do this programatically.

Is there an event that I can fire which will allow the NDataGridView to perform the BestFit or the ChooseColumns functionality.

How can I trigger these events? Or is there another way to accomplish this?

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