Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
Am havg this error that says cannot explicitly call operator
Tchala B
7y
227
1
Reply
I think am on the right truck but i dont know where am messing up .Any advice is welcome.
Here is my code
private
Worksheet wks(
string
string_1, ExpandableGridView expandableGridView_2)
{
IEnumerator enumerator =
null
;
IEnumerator
enumerator1 =
null
;
Worksheet worksheet;
Worksheet worksheet1 =
new
Worksheet();
int
num = 0;
int
num1 = 0;
try
{
this
.list_0.Clear();
try
{
enumerator = expandableGridView_2.Columns.GetEnumerator();
while
(enumerator.MoveNext())
{
DataGridViewColumn current = (DataGridViewColumn)enumerator.Current;
if
(!current.Visible)
{
continue
;
}
this
.list_0.Add(current.Index);
//the error appears on the below lines of code where it says get_Item
worksheet1.CellGrid.get_Item(num1, num).set_Value(current.HeaderText);
worksheet1.CellGrid.get_Item(num1, num).set_WrapText(
true
);
worksheet1.CellGrid.get_Item(num1, num).set_BackgroundColor(Color.Gray);
worksheet1.CellGrid.get_Item(num1, num).set_Color(Color.White);
worksheet1.CellGrid.get_Item(num1, num).set_VerticalAlignment(1);
if
(num1 > 0)
{
worksheet1.CellGrid.get_Item(num1, num).set_RotationAngle(-90);
}
num1 =
checked
(num1 + 1);
}
}
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Getting a 404 Note found - ajax
how to pass parameters from view to controller in ajax